Risposto
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 ...

oltre 3 anni fa | 0

Risposto
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...

oltre 3 anni fa | 1

| accettato

Risposto
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 ...

oltre 3 anni fa | 0

| accettato

Risposto
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...

oltre 3 anni fa | 1

| accettato

Risposto
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 = ...

oltre 3 anni fa | 0

| accettato

Risposto
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 ...

oltre 3 anni fa | 1

| accettato

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

oltre 3 anni fa | 0

Risposto
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...

oltre 3 anni fa | 0

Risposto
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...

oltre 3 anni fa | 0

| accettato

Risposto
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...

oltre 3 anni fa | 1

| accettato

Risposto
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...

oltre 3 anni fa | 1

Risposto
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 ...

oltre 3 anni fa | 1

| accettato

Risposto
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...

oltre 3 anni fa | 1

| accettato

Risposto
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...

oltre 3 anni fa | 0

Risposto
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...

oltre 3 anni fa | 1

Risposto
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; % ...

oltre 3 anni fa | 2

| accettato

Risposto
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...

oltre 3 anni fa | 0

| accettato

Risposto
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...

oltre 3 anni fa | 0

| accettato

Risposto
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...

oltre 3 anni fa | 1

Risposto
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 % ...

oltre 3 anni fa | 0

Risposto
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...

oltre 3 anni fa | 0

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

oltre 3 anni fa | 0

Risposto
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")...

oltre 3 anni fa | 0

| accettato

Risposto
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....

oltre 3 anni fa | 1

| accettato

Risposto
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...

oltre 3 anni fa | 0

| accettato

Risposto
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...

oltre 3 anni fa | 0

| accettato

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

oltre 3 anni fa | 0

Risposto
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 = [-...

oltre 3 anni fa | 1

Risposto
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)); ...

oltre 3 anni fa | 0

Risposto
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...

oltre 3 anni fa | 0

Carica altro