回答済み
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...

3年以上 前 | 1

| 採用済み

回答済み
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 = ...

3年以上 前 | 0

| 採用済み

回答済み
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 ...

3年以上 前 | 1

| 採用済み

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

3年以上 前 | 0

回答済み
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...

3年以上 前 | 0

回答済み
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...

3年以上 前 | 0

| 採用済み

回答済み
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...

3年以上 前 | 1

| 採用済み

回答済み
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...

3年以上 前 | 1

回答済み
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 ...

3年以上 前 | 1

| 採用済み

回答済み
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...

3年以上 前 | 1

| 採用済み

回答済み
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...

3年以上 前 | 0

回答済み
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...

3年以上 前 | 1

回答済み
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; % ...

3年以上 前 | 2

| 採用済み

回答済み
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...

3年以上 前 | 0

| 採用済み

回答済み
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...

3年以上 前 | 0

| 採用済み

回答済み
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...

3年以上 前 | 1

回答済み
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 % ...

3年以上 前 | 0

回答済み
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...

3年以上 前 | 0

回答済み
change class syms to double
Something like this ... e = exp(sym(1)) class(e) format long e = double(e) class(e)

3年以上 前 | 0

回答済み
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")...

3年以上 前 | 0

| 採用済み

回答済み
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....

3年以上 前 | 1

| 採用済み

回答済み
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...

3年以上 前 | 0

| 採用済み

回答済み
plotting a surface between two curve
Hi M, Here's some code to get started. % small curve file_address = 'https://www.mathworks.com/matlabcentral/answers/uploaded...

3年以上 前 | 0

| 採用済み

回答済み
convolution without conv function
Questions like this are fairly common on this forum. A closed form expression can be obtained using syms heaviside rectangula...

3年以上 前 | 0

回答済み
fplot and laplace transform
Based on the comment thread in the question, I think the best you can do symbolically would be some something like this: A = [-...

3年以上 前 | 1

回答済み
Complex equation in MATLAB (control engineering)
Hi Michael, vpasolve found a solution, even if it's not the one you want. syms s syms w T real F_O = (exp(-s*T))/(s*(1+s)); ...

3年以上 前 | 0

回答済み
how to model this algorithm in simulink?
In the integrator block, set the "Initial Condition Source" to external. Then, connect that source to whatever logic you need t...

3年以上 前 | 0

回答済み
Discretize State Space feedback controller using c2d()
Hi John, lqrd returns the gains for a discrete time controller. The Control System Toolbox cannot model hybrid systems, as far ...

3年以上 前 | 1

| 採用済み

回答済み
Matlab function block and integration
If computing the instantaneous power as a function of time, why not feed that into an integerator to find the energy as a functi...

3年以上 前 | 1

回答済み
How to create a sine function from simulink blocks?
Why not just use a Sine Wave block? Would be a lot easier, and you can specify the sample time. The plot you're getting is most...

3年以上 前 | 0

| 採用済み

さらに読み込む