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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

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

más de 4 años hace | 1

| aceptada

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

más de 4 años hace | 1

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

más de 4 años hace | 0

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

más de 4 años hace | 1

| aceptada

Respondida
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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 1

| aceptada

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

Respondida
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); ...

más de 4 años hace | 1

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

más de 4 años hace | 1

Pregunta


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

más de 4 años hace | 1 respuesta | 0

1

respuesta

Respondida
Want to change Matlab current folder to be the same as Simulink
The easiest thing to do is use addpath() once to add the location of the .slx file to the search path. Alternatively, add this ...

más de 4 años hace | 0

| aceptada

Respondida
why are the output simulation results of the following LTI system different by using 'lsim' command and theorical method calculations?
I suspect the problem is that lsim() is ineherently an approximation to the LTI system response. I think that lsim() generates ...

más de 4 años hace | 0

| aceptada

Respondida
Feature similar to feedback command in simulink
Two separate issues. The first is that, as you've discovered, it's (almost?) always better to use the feedback() command as for...

más de 4 años hace | 0

| aceptada

Respondida
How to substitute the values of two variables in an expression at the same time - Matlab
Can you define Q1sym as a symfun? % simple example syms b t Q1sym(b,t) = b + t; b1 = sym(1:5); t1 = sym([ 1/2, 11/20, 3/5, ...

más de 4 años hace | 1

| aceptada

Respondida
Why does kron(D,I), with D and I both sized (nxn), not create a matrix sized (n^2 x n^2)?
Because D is not 5 x 5 x = sym('x', [1 15], 'real'); D = diag(-x(1) -x(2) -x(3) -x(4) -x(5)) size(D) Perhaps you meant D =...

más de 4 años hace | 1

| aceptada

Respondida
How to equate two equations and find one of the unknown from it as a function of second unknown?
syms et etplusone R1 = 1.5; ntone = R1 + etplusone + et; %%Equation(1) nttwo = log(R1) + 2*etplusone + et^2; %%Equation(2)...

más de 4 años hace | 0

| aceptada

Respondida
How to obtain orthogonal (not orthonormal) vectors from "orth" or "qr"?
I think this at least illustrates what you're trying to accomplish. It might not be (probably isn't) the best way % generate so...

más de 4 años hace | 0

Pregunta


Are there Any Restrictions on Latex Markup in Figure Titles?
This works fine: syms t s1(t) = exp(-abs(t)); figure; title("$"+latex(s1(t))+"$",'Interpreter','latex') But this does not ...

más de 4 años hace | 1 respuesta | 0

1

respuesta

Pregunta


My Experience with Live Script is Not Meeting Expectations. Does it Meet Yours?
Following up from this question ... I've only been using Live Script for a few months now, but I've been using it over three ve...

más de 4 años hace | 0 respuestas | 1

0

respuestas

Respondida
Tips on how to write a transfer function with "e" on simulink
The exp(-sT) in G1(s) represents a delay of T seconds between the input and output of G1(s) (in addition to the effect of the 0....

más de 4 años hace | 0

Respondida
Different vector length on plotting convolution of Hanning signal with Dirac Delta signal
It's easier to make it work if the signals are defined over the same time vector. And use the full convolution. dt = 0.1; xt= ...

más de 4 años hace | 1

| aceptada

Pregunta


Is the Result from dsolve() Justified for a heaviside() Input?
This question is a follow up to this one that I feel warrants a separate discussion. The problem is ... Solve this differential...

más de 4 años hace | 0 respuestas | 0

0

respuestas

Respondida
errors with musyn -- Plant must have at least <> inputs and <> outputs
The plant model has 4 outputs and 1 input. If you look at doc musyn you'll see that the second (nY) and third inputs (nU) are...

más de 4 años hace | 0

Cargar más