Community Profile

photo

Paul


Last seen: Today Active since 2011

Statistics

All
  • Thankful Level 3
  • Knowledgeable Level 4
  • Pro
  • 12 Month Streak
  • Revival Level 1
  • First Answer
  • Solver

View badges

Content Feed

View by

Answered
How do I print a Simulink block's mask dialog?
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...

10 minutos ago | 0

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

alrededor de 4 horas ago | 0

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

1 día ago | 0

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

2 días ago | 0

| accepted

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

3 días ago | 0

Answered
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 días ago | 1

| accepted

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

5 días ago | 0

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

7 días ago | 0

| accepted

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

8 días ago | 0

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

8 días ago | 0

| accepted

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

8 días ago | 0

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

9 días ago | 0

| accepted

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

9 días ago | 1

| accepted

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

9 días ago | 0

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

10 días ago | 0

| accepted

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

10 días ago | 0

| accepted

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

12 días ago | 0

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

13 días ago | 0

| accepted

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

14 días ago | 0

| accepted

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

15 días ago | 0

| accepted

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

16 días ago | 0

Answered
Simulink accelerometer flipping y axis?
I think the reason is .... The CG and ACC location vectors are resolved in "Flight Gear Coordinates (FGC)" (or a frame parallel...

16 días ago | 1

| accepted

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

18 días ago | 1

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

19 días ago | 0

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

19 días ago | 1

| accepted

Answered
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

21 días ago | 0

| accepted

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

22 días ago | 0

Answered
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)] ]; ...

22 días ago | 0

| accepted

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

23 días ago | 1

| accepted

Answered
Does Simulink compiles a model when opening it?
doc open_system

23 días ago | 0

Load more