回答済み
cannot use `lsim()` function properly
Hi 嘉伟, Here is the plant model M = 1.5; m = 0.5; l = 10; g = 9.8; %% state space A = [0 1 0 0; 0 0 m*g/M 0; 0 0 0 1; 0 0 ...

3年以上 前 | 0

| 採用済み

回答済み
Fourier transform of circular convolution is not equal to multiplication of two Fourier transforms?
Hi Khiem, Consider the following to see the difference between circular and linear convolution. N = 32; ...

3年以上 前 | 1

| 採用済み

回答済み
How to do error approximation of a weibull fit in matlab
The Weibull distribution is that of a continuous random variable. Are you trying to compare its fitted pdf with the plot returne...

3年以上 前 | 0

回答済み
I wonder why the following code is not able to give a valid output? My objective is to solve a system of simultaneous ODEs with dirac comb func.
Hi Mridupawan, It would be helpful if you posted the error that you're getting or otherwise show exactly what the problem is. ...

3年以上 前 | 0

回答済み
Problem with Kalman Filter and state space model
Hi Tobias, It looks like the state space model is defined in continuous time, but the Kalman filter is a discrete-time implemen...

3年以上 前 | 1

| 採用済み

回答済み
How to calculate real probability of data
"is there a way I can get the probability values in a matrix of the same dimenions as A." The number of bins in the histogram w...

3年以上 前 | 0

| 採用済み

回答済み
Changing initial conditions of a Simulink model when simulating using a for loop
I think you can do what you want using Model Operating points. Here's a doc page to get started. Why do you want to do this: in...

3年以上 前 | 1

回答済み
programmatically collect sim errors
Using the sim command, simulation warnings are captured in the SimulationMetaData.ExecutionInfo of the output of the sim command...

3年以上 前 | 0

| 採用済み

回答済み
imufilter results seem incorrect
I think the gyro data is in deg/sec, but the imufilter wants that input in rad/sec. Check those units. data = readtable('data.c...

3年以上 前 | 0

| 採用済み

回答済み
I'm getting weird units while double-integrating accelerometer data to extract displacement
Hi @Nathaniel, I only see one issue with the code, but I have some other thoughts for consideration. Read in the data warning...

3年以上 前 | 0

回答済み
Decreasing digits of answer
Try: vpa(grad,6)

3年以上 前 | 1

回答済み
freqz() not behaving as expected?
The b and a inputs to freqz are the coefficients in ascending powers of z^-1. So this case b = 1; a = [1 0 0 0]; really means...

3年以上 前 | 1

回答済み
include all rows matrix in []
One way .... Create example data Sis.a = 1; Sis = repmat(Sis,73,1); z = rand(5668,73); The code [Sis.z] = cell2struct(num2...

3年以上 前 | 2

回答済み
DTFT possible on Matlab?
Computing the DTFT of a signal in Matlab depends on a) if the signal is finite duration or infinite duration b) do we want the...

3年以上 前 | 2

回答済み
How to verify the discrete-time convolution theorem with Matlab
Hi moyu, Linear convolution in the frequency domain using fft requires zero padding the sequences before taking the FFTs and mu...

3年以上 前 | 1

回答済み
sum filed in struct
% example data Sis.PV = 20; % Sis.PV = repmat(Sis.PV,1,82); % original incorrect line, expanded the field instead of the struc...

3年以上 前 | 2

| 採用済み

回答済み
How can i get frequency domain of an earthquake?
Hi ADNAN, I had a comment in this thread that was mysteriously deleted, so I'll repost here as a separate answer. It looks lik...

3年以上 前 | 0

回答済み
How to sort the cell with string based on dates (earliest date should begin first)
Hi Geerthy, Here is one approach. Some of the steps can be combined if fewer lines of code are desired. c = {'(Z98.1 Z47.89 Z9...

3年以上 前 | 2

| 採用済み

回答済み
Why Execution Order of Sum block is not shown in the Simulink model?
It's possible that Simulink has determined that those blocks don't need to be executed (I think there is a Block Reduction optim...

3年以上 前 | 0

回答済み
Finding Generalized Plant matrix
Hi Ömer, Did you try constructing P exactly as written, with the 0 entries of correct dimension?

3年以上 前 | 1

回答済み
Numerical problems when plotting with fplot
Hi FRANCESCO, I can't explain the inner workings of fplot, but I too have had occasion where it comes up with odd results. Her...

3年以上 前 | 1

| 採用済み

回答済み
Reloading handle objects from .mat files
Hi Matt, It looks like two of the properties are changed, either on the save or on the load. h=plot(1:5); save tst h h2=lo...

3年以上 前 | 1

| 採用済み

回答済み
Is there a distinction between the D term and the derivative component of the PID controller?
If P = I = 0, and D = 1, we're left with: PID(s) = N/(1 + N/s) = N*s/(s + N) With the block parameter value of N = 100 PID(s)...

3年以上 前 | 0

| 採用済み

質問


What are Your Thoughts on TMW Using Answers as Source of Documentation?
This Question has an answer that links to this doc page. That doc page, in turn, has a direct link to another Question/Answer (...

3年以上 前 | 1 件の回答 | 0

1

回答

回答済み
need help in understanding with feedback command
Hi shipra, In accordance with the the doc page feedback, the first argument is the forward path gain and the second argument is...

3年以上 前 | 0

| 採用済み

回答済み
Is it possible to change the unit of reluctance block of MATLAB from m.file?
It appears this can be done via typical set_param commands. For example, I have a Reluctance block selected in my model: set_pa...

3年以上 前 | 0

回答済み
Average columns together that share a common value
D = [1, 25 3, 33 3. 45 2, 22 4, 54 4, 56 5, 23 5, 65 1, 27 2, 29]; [G,ID] = findgroups(D(:,1)); [ID splitapply(@mea...

3年以上 前 | 2

回答済み
How do i plot poles of three matrices using different marker for each matrix on same plot using either pzmap or pzplot?
Hi Kamilu, The code calls pzmap twice in the D==70 case. The code checks for a case with D == 7, but the second element throug...

3年以上 前 | 0

回答済み
How to include a model (created by me at Simulink) in Matlab script?
Hi jana, Can you clarify this statement: "I couldn't use the state space representation because I have a disturbance acting on ...

3年以上 前 | 1

| 採用済み

回答済み
State-space input response
Hi Yasin, You can create a model using ss. Wtih that model you can simulate the repsonse to the initial condition and the input...

3年以上 前 | 1

| 採用済み

さらに読み込む