Community Profile Paul

Last seen: Today Active since 2011

Statistics

All
• • • • • • • Content Feed

View by

Array variable as parameter value in simulink
Use a Selector block. Choose the 'Index option' as 'Index vector - port'. Then connect A to the U port and feed the Indx1 port ...

4 hours ago | 0

Create diagonal matrix from vector in Simulink without DSP toolbox and without knowing the dimension of the vector
The easiest way, perhaps not without drawbacks, is to use an Interpreted Matlab Function block. In the dialog box make the 'Matl...

17 hours ago | 0

Trying to demonstrate group delay but not seeing any in dsp.BiquadFilter.
I thought group delay shifts the low frequency envelope of the signal and phase delay (phase / frequency) shifts the high freque...

3 days ago | 0

| accepted

check for new line in a string
These functions might help doc newline doc contains

4 days ago | 0

I need help plotting this inverse Laplace Transform
Replace all instances of pi with Pi, defined as Pi = sym(pi); which is a good habit to get into regardless. Then you can stay...

4 days ago | 0

| accepted

If z is a vector , what is the difference between angle(z) and atan2(z)
atan2() returns the answer in radians. So multiply it by 180/pi as for P2 and P3 (or use atan2d(), though atan2d() might result ...

4 days ago | 0

How to integrate for each row of parameters in a matrix, rather than using a loop
integral() can integrate a vector function of a scalar. It sounds like this is what you're looking for. link to doc Whether or...

5 days ago | 0

| accepted

Problem with amplitude and smoothness of FFT
The time domain signal, Signal, is not a sum of pure cosines because of how Digit is calculated, so we shouldn't expect its fft ...

5 days ago | 1

| accepted

how can i use mvnrnd function?
I'm not exactly sure what the question is. If the question is: how to draw hundres of samples from the multi-variate normal dis...

5 days ago | 0

problem in summation of two transfer function
sys1 = tf(1,[2 1]); sys2 = tf(2,[2 1]); sys3 = sys2 + sys1 minreal(sys3) minreal(parallel(sys1,sys2)) minreal() normalizes ...

6 days ago | 0

| accepted

Error in using eval statement
There's almost certainly a better way to organize the data and store the results, but if you must use eval: ['Energy_H_A',num2s...

6 days ago | 0

| accepted

How can I fix this Error?
Let's look at what we have so far with a sight change in notation that might make it clearer to read and a path to a general sol...

8 days ago | 0

Find poles and zeros of transfer function
That error shows up because minreal() and ss(), etc. are functions in the Control System Toolbox. Those functions cannot accept...

9 days ago | 0

| accepted

Define and Use Structure Parameters in Simulink
Do you actually have a variable in the base (or model, I suppose) workspace named 'struct'? That would be odd because struct is...

10 days ago | 0

| accepted

Use an array as input and output in Simulink
The unit delay block can handle arrays. Did you try it and run into an error?

11 days ago | 0

| accepted

Force zeros to be be symbolic
I'm not familiar with this? un',0 Can you show that in a cellfun command? In any case, diff() always returns a symbolic expre...

12 days ago | 0

I think the reason is .... The CG and ACC location vectors are resolved in "Flight Gear Coordinates (FGC)" (or a frame parallel...

12 days ago | 1

| accepted

Generating a matrix with specific sums
Another solution: X = randi([0 400], 6, 6) kron(eye(3),[1 1])*X

14 days ago | 1

Why is ySol(t) = Dsolve(ode,cond) wrong? What should it be instead?
I think the ode needs to be solved first, and then sub in the values of y(0) to get the family of solutions (if I understand the...

15 days ago | 0

Fourier series and transform of Sinc Function
Hello @cikalekli, The second and third graph are both plots of the magnitude of the sinc() function, so it would appear that th...

15 days ago | 1

| accepted

How can i plot frequency contect of the signal with TF code?
The bode() command is one way to compute and visualize the frequency response of the transfer function. doc bode

17 days ago | 0

| accepted

im trying to plot this function, y= (exp(1i.*k.*pi./10).*(1-exp(-1i.*k.*2.*pi)))./(20.*(-1+(exp(1i.*k.*pi./10))));
syms y k y= (exp(1i.*k.*pi./10).*(1-exp(-1i.*k.*2.*pi)))./(20.*(-1+(exp(1i.*k.*pi./10)))); y is complex valued, e.g. subs(y,...

18 days ago | 0

Error using subs function of Symbolic Math toolbox
Use Torsten's suggestion, or syms a b S f(a,b,S) = a+a*b + b*S; Data =[ ]; for i = 1:10 Data =[Data ; [i, f(1,2,i)] ]; ...

18 days ago | 0

| accepted

How does the division operator work with transfer function objects?
Let's solve a simpler problem "by-hand" using the zpk format to see what's happening. Define the plant model: G = zpk([-1],[-2...

19 days ago | 1

| accepted

Does Simulink compiles a model when opening it?
doc open_system

19 days ago | 0

How to programmatically distinguish between different block type?
Well, it does appear that there are several blocks in the Discrete library that all have BlockType == 'Delay' As far as I can t...

20 days ago | 0

Why is Simulink Help Going to mathworks.com and Not Using my Local Help Browser?
Swithed the preference for documentation location to "Web, on mathworks.com," clcked Apply, switched back to "Installed Locally...

20 days ago | 0

Control systems: Labelling multiple plots dynamically based on parameter ?
Here's a way to do it with a legend. s = tf('s'); Wn = 1; for zeta = 0.1:0.1:0.9 T = Wn^2/(s^2 + 2*zeta*Wn*s + Wn^2); ...

20 days ago | 1

Solving two second order ODEs
I think there are a few mistakes in the code syms U(t) V(t) %Constants definition a = 1; w = 100; dU=diff(U,t); dV=diff(V,...

22 days ago | 1

Question

Why is Simulink Help Going to mathworks.com and Not Using my Local Help Browser?
I right click on a block in my Simulink block diagram and click on Help in the pop-up menu. Doing so opens up the doc page on ma...

24 days ago | 1 answer | 0