Respondida
I want to integrate a symbolic matrix numerically. How can I do it??
I don't think there's a function for numerically integrating an arrayvalued function of two variables. Here's a loop approach to...

alrededor de 3 años hace | 0

Respondida
How do I get rid of the sinusoidal wave in my output waveform for fourier series sawtooth waveform?
Hi Chaileen, It looks like you're trying to use a summation like this: for n = 1:8 y2 = y2 + B(n)*sin(2*pi*n*t2/(T0)) en...

alrededor de 3 años hace | 0

Respondida
Find the nonzero maximum frequency corresponding to FFT graph.
If the DC offset is of interest (or even if it isn't) [maxSOa,index] = max(SOa(2:end)); % ignores first point a f=0 F_fake = f...

alrededor de 3 años hace | 0

Respondida
I dont understand why the variable x is incorrect.
Hi Nam, What is the justification for the computation of r(1,:)? If you're trying to find the extrema of J0, why use fsolve to...

alrededor de 3 años hace | 0

Respondida
Programmatically change MATLAB Fcn Block Function Configuration Script
Hi Aarish, This worked for me. config = get_param(gcb,'MATLABFunctionConfiguration'); % Matlab Fcn block selected in Simulink ...

alrededor de 3 años hace | 0

| aceptada

Respondida
Finding intersection of rlocus branch and a line at an angle
One way would be to use the output arguments from rlocus to get the closed loop pole locations and the associated gain. Here's ...

alrededor de 3 años hace | 0

Respondida
Step() not working as expected with USS state space (Uncertain Sys)
Hi John, Disclaimer: I'm not really a user of the Robust Control Toolbox. I'm not quite sure how to interpret the discretizati...

alrededor de 3 años hace | 1

| aceptada

Respondida
Applying array of transform matrices to array of vectors
Check out pagemtimes. Whether or not it's faster than a loop ... would need to be tested on your system D = rand(3,3,700); v ...

alrededor de 3 años hace | 0

| aceptada

Respondida
How to tell if an object is an Uncertain state-space (USS) model?
Hi @John Looks like isuncertain can be used to query if the input is uncertain. Also, there is a function isStateSpace that c...

alrededor de 3 años hace | 1

| aceptada

Respondida
Spectrogram function cutting off beginning and end of signal
Hi Danielle, Create a fake signal using the the parameters in the question downsampledrate = 2e3; rng(100); originalsound = ...

alrededor de 3 años hace | 0

| aceptada

Respondida
Converting frequency domain to Time Domain using IFFT
Hi luo xj, Would need more information on what you have. Here is an example showing how to reconstruct a signal. Maybe it can ...

alrededor de 3 años hace | 1

| aceptada

Respondida
Сan not identify block
Right click on the block and then click on Help, which will take you the doc page for the block.

alrededor de 3 años hace | 0

Respondida
How to handle empty input arguments with the arguments block?
It sees like, at least based on the examples in the Question, the desire is to have a value of empty be overwritten with some ot...

alrededor de 3 años hace | 0

Respondida
Chebyshev smoother, I cannot get this to run, I dont understand why.
Hi Nathan, Can't run the code because not all of the information needed to run it is provided. dtVx = rho*resolx.^2./(4*eta_nb...

alrededor de 3 años hace | 0

| aceptada

Respondida
How can I set this model properties ( Enable model access to base workspace ) by API such as set_param command?
Does set_param('f14','EnableAccessToBaseWorkspace','off') do what you need? Link to Doc Page The doc page says the parameter...

alrededor de 3 años hace | 1

| aceptada

Respondida
How to incorporate equations in the connect function for control design?
connect only works with lti system objects. Nonlinear elemens have to be linearized around an equilibrium point and the lineari...

alrededor de 3 años hace | 1

Respondida
lsim() vs step() : are different responses expected?
@John I was able to recreate your strange result on R2022a. After some investigation, I think I know what's happening. load ...

alrededor de 3 años hace | 1

| aceptada

Respondida
Adding InternalDelay for State Space system
Hi John, I suspect the error message is telling you that you can only change the value of internal delays that already exist in...

alrededor de 3 años hace | 1

| aceptada

Respondida
How to plot the actual frequency range for the FFT plot?
clear all; close all; clc; %% Signal parameter c = 3e8; % speed of light fc= 10e9; % c...

alrededor de 3 años hace | 0

Respondida
A weird feature in the obtained function from calculating the inverse Fourier transform using ifft
Hi Shaily_T, It looks like the purpose of the code is to linearly convolve an input signal with an impulse response via mulitip...

alrededor de 3 años hace | 1

Respondida
Omega method to integrate sin function
Hi Tommaso, Starting with the acceleration as in the orginal code (I prefer to use row vectors) % use row vectors fs = 20; % ...

alrededor de 3 años hace | 2

| aceptada

Respondida
How to find the correct magnitude/frequency value for FFT when there has noise?
Hi Hantao, Load the data x = readtable('Data.xlsx'); Time = x.Time; Current = x.Current; Plot it figure plot(Time,Current...

alrededor de 3 años hace | 0

| aceptada

Respondida
Why is FFT result divided by NFFT instead of the root of NFFT?
Hi Miktat, The energy spectrum and the amplitude spectrum are two different things. Using the conventions of fft, the output yf...

alrededor de 3 años hace | 0

| aceptada

Respondida
Why does cconv perform worse than conv?
I ran this code where cconv outperforms conv for large n n = round(linspace(1e3,1e5,50)); n2 = 2.^(5:nextpow2(n(end))); n = s...

alrededor de 3 años hace | 1

Respondida
lsim() vs step() : are different responses expected?
The code and the system in the .mat file does not recreate the step plot. There is also an undefined variable. load sys.mat % ...

alrededor de 3 años hace | 0

Respondida
What is being "averaged" in the matlab bandpower() function?
Hi Joey, I will confess to only having basic knowledge of this subject and suggest a thorough review of a good textbook. I'll t...

alrededor de 3 años hace | 0

Respondida
change class syms to double
Something like this ... e = exp(sym(1)) class(e) format long e = double(e) class(e)

alrededor de 3 años hace | 0

Respondida
ifft returns NaN when plotting the impulse response function
Hi 粤轩 杨, It looks like h_FFT also has a few values that are inf, in addition to the NaNs load("AIF_1.mat"); load("inj_1.mat")...

alrededor de 3 años hace | 0

| aceptada

Respondida
Extract first and last row of each subarray in a cell array
I think this works even if the first and last row of a cell are identical. load(websave('cellArray.mat','https://www.mathworks....

alrededor de 3 años hace | 1

| aceptada

Respondida
Issues with subs function
I'm sure if you go through it step-by-step, or w/o assigning numbers until the end, you'll see that value of b1 is magical and a...

alrededor de 3 años hace | 0

| aceptada

Cargar más