Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
Decreasing digits of answer
Try: vpa(grad,6)

presque 3 ans il y a | 1

Réponse apportée
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...

presque 3 ans il y a | 1

Réponse apportée
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...

presque 3 ans il y a | 2

Réponse apportée
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...

presque 3 ans il y a | 2

Réponse apportée
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...

presque 3 ans il y a | 1

Réponse apportée
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...

presque 3 ans il y a | 2

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 2

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
Finding Generalized Plant matrix
Hi Ömer, Did you try constructing P exactly as written, with the 0 entries of correct dimension?

presque 3 ans il y a | 1

Réponse apportée
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...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
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)...

presque 3 ans il y a | 0

| A accepté

Question


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

presque 3 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 2

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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 ...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
How to access only the first element of the variables in a structure array as a vector?
One option S(1).Location = [1 4]; S(2).Location = [4 15]; S(3).Location = [3 7]; L = arrayfun(@(S) S.Location(1),S)

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Algebraic loop error - Simulink
Hi John, The model equations as implemented are: (1) actual_height = new_height (2) new_height = displacement + actual_heigh...

presque 3 ans il y a | 0

Réponse apportée
Zero pole with 2 poles change s value
I guess you'd first rewrite it in zpk form as K1*Tm/(T1*T2) * (s+1/Tm) / ( (s + 1/T1) * (s + 1/T2) ) so the gain is K1*Tm/T1/T...

presque 3 ans il y a | 1

Réponse apportée
I don't understand this command : F=find(B>4)
B is a 2D matrix. B=[1 2 3 4; 5 6 7 8] This command finds the "linear indices" of the elements of B that satisfy the criteria ...

presque 3 ans il y a | 2

Réponse apportée
Filter coefficients from frequency response with invfreqs/invfreqz
Assuming that f_APSD is in Hz, the filter, h, below gives a reasonable match to APSD. df = 0.1; f_a = 20; f_b = 100; f_c = 30...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
Use Simulink PreSimFcn to set metadata in a Simulink.SimulationOutput object
Hi Afzal, You can store data into the Simulink.S​imulationO​utput object via the SimPostFcn. Here is an example.

presque 3 ans il y a | 0

Réponse apportée
Confusing error when choosing the appropriate loop opening location for TuningGoal.Sensitivity()
Hi Dhilen, The error message shows up because CL0 does not include those analysis points R_f = 0.1; L_f = 8*10^-3; R_li = 20...

presque 3 ans il y a | 2

| A accepté

Réponse apportée
Simulink: how to define variable that will remain constant during duration of simulation and use in MATLAB function blocks
For part a), a Tapped Delay block seems like it meets the need. For part b), in the absence of any other information, feed the ...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Huge scaling factor on amplitude in NUFFT vs FFT
In the fft section, the variable dft_trajectory is defined as % dft_trajectory = abs(fft(raw_trajectory(:,i))/m); but t...

presque 3 ans il y a | 1

Charger plus