Community Profile Paul

Last seen: Today Active since 2011

Statistics

All
• • • • • • • Content Feed

View by

Matlab recommends me to apply 'subs' command but I have already used it to convert a symbolic matrix into a numerical one. What fails?
It looks like there is still one or sym objects left in A_num after the command A_num = subs(A_simb, P_simb, P_num); What is t...

1 day ago | 0

| accepted

Implementation of filter bank using fir1
Take advantage of the frequency shift property of the DTFT. For example Fs = 1000; f = (-0.5:.001:0.5)*Fs; L = 50; lpf = fi...

1 day ago | 1

| accepted

dbode results in phase shift that is wrong (I believe)
dbode() callse bode(), which in turn has an algorithm that tries to "unwrap" the phase by adding multiples of 360 deg across the...

3 days ago | 0

| accepted

Here is a way to get the mask parameters for a masked block, stored in a struct with field names the parameter names and field v...

3 days ago | 0

Is applying a binary operator (+,-,*,/) to char arrays supported by MATLAB or just a "trick"
Not directly on point to the Question, but a related "feature" is that char vectors can be used to directly into index into arra...

3 days ago | 0

Finding x for y = f(x) in simulink
According to the Symbolic Math Toolbox, the solution can be expressed as %iel = wrightOmega(uel/3 - log(3) - 2/3) - 1/3 assumi...

5 days ago | 0

Unique workspace for each instance of Interpreted MATLAB Function block?
I think the way that you can do this with minimal changes to your overall approach would be as follows. If you're willing to cha...

5 days ago | 0

| accepted

How do I implement this in discrete form
If the transfer fucntion of the controller, C(z), is improper (more zeros than poles), then its partial fraction expansion will ...

6 days ago | 0

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

8 days ago | 1

| accepted

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

8 days 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...

10 days ago | 0

| accepted

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

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

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

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

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

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

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

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

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

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

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

17 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?

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

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

19 days ago | 1

| accepted

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

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

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

22 days ago | 1

| accepted