Respondida
Question about matricies in Matlab
You'll have to fill in the last spot ox x2 with something if you want to combine x1, x2, and x3 into a single matrix. The value ...

más de 4 años hace | 0

| aceptada

Pregunta


Why Does "clear all" Impact Prior Commands in a Script?
Here is the example code. If I comment the "clear all" line in Section 2 the ouput of fplot() in Section 1 comes out fine with ...

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

2

respuestas

Pregunta


Did LiveScript Get Worse in 2020b?
I recently updated from 2019a to 2020b. I've been working on Live Script. In 2019a, it works fine. In 2020b I'm seeing a serio...

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

1

respuesta

Respondida
how to plot impulses obtaining x and y values (non periodic) from 2 separate matrices
Is one of these what you want? SpurOffsetFreq = [37.467 56.486 85.159; 56.486 86.693 113.309]; SpurLeveldBc = [-96.527 -97.912...

más de 4 años hace | 0

| aceptada

Respondida
Simulink To workspace issues R2017a
Don't know why those two sim commands would yield different results. In the first instance, I suspect that currvolt is inside an...

más de 4 años hace | 0

| aceptada

Respondida
A better way to do antidiagonal matrix vectorization?
The approach in test1() isn't faster, but perhaps it meets the criterion for more elegance. My tests indicate that most of the ...

más de 4 años hace | 0

| aceptada

Respondida
Replacing Blocks in Simulink but keep their value
You can use : val = get_param(blk,'Value') to get the value of the Contant block(s) to be replaced. Then replace the block(s)...

más de 4 años hace | 0

Respondida
How can I call an array of letters into a for loop?
If I understand the question .... letters = 'ABCD'; % simpler for ii = 1:4 fprintf('The open loop poles for part %s are:\n',...

más de 4 años hace | 0

| aceptada

Respondida
How would I get an inverse and transfer function of a matrix with variable s?
A is of class char. What I think you want is a transfer function matrix from the Control Systems Toolbox A = [('s' + 0.06728) ...

más de 4 años hace | 1

| aceptada

Respondida
MATLAB returns a wrong value of determinant.
The reason det() doesn't return zero for this matrix is because the floating point errors in the computation of the determinant....

más de 4 años hace | 1

| aceptada

Pregunta


Why Does fplot() Show a Phantom Pole?
Example of fplot() showing a pole where clearely one does not exist. I know I can get rid of the dased line with the ShowPoles o...

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

1

respuesta

Respondida
'ab[c]' to this 'ab_c' ?
C = { '10fthf[c]' '10fthf[h]' '10fthf[m]' '10fthf[x]'} cellstr(extractBefore(string(C),"[") + "_" + extractBefore(e...

más de 4 años hace | 0

Respondida
Numerical Solution for a system of Two Differential Equations
Because V(t) is an input presumably it can be expressed as a function of time, in which case the simplest appraoch is to just c...

más de 4 años hace | 0

Respondida
Even with all my effort, I can not get my plot to show a line, why?
At the end of your loop, the variable balance is a single number. Maybe you wanted balance(i) = Obalance so that balance is a...

más de 4 años hace | 0

Respondida
Inputting simulation data to Simulink
One option is the From Workspace block.

más de 4 años hace | 0

| aceptada

Respondida
Plot signal of DFT without using FFT function
The first approach to compute DFT directly using the definition can't be correct because there is no summation over n. Try it th...

más de 4 años hace | 0

| aceptada

Respondida
How do I input a tranfer function in simulink with just a numerator?
Similar question discussed here

más de 4 años hace | 0

Respondida
Issue with FFT/Power Spectral Density
That peak is at dc because the mean of the data is very large. Try fhat=fft(detrend(ecg_data),n); to take out the mean before ...

más de 4 años hace | 0

Respondida
Solving a transcendental equation
Here's another way to get a numeric solution, staying in the symbolic world % Pyhsical Parameters L = 0.02; %[m] H = 0.5; %[m...

más de 4 años hace | 1

Respondida
lsim function not work for polynomial model
I'm not sure what a "polynomial model" is. But that error message means that lsim is being called on a discrete time system that...

más de 4 años hace | 0

| aceptada

Respondida
Fourier transform of symbolic function
Replicating the code: clear syms t syms y(t) z(t) syms k m w J I Dy = diff(y); Dz = diff(z); k = 4.5682; m = 0.2; w = 0...

más de 4 años hace | 1

Respondida
I m trying to solve homogeneous linear system equations X = K exp (Lamda (t))
It doesn't work because A is a 3 x 3 matrix, but Y is only 2 x 1, so A*Y doesn't make sense. Maybe you meant to include a third ...

más de 4 años hace | 0

| aceptada

Respondida
Best way to optimize iterative Simulink calls
I have no idea why a run in the loop takes so much longer than a single run not in the loop. Might be worth reaching out to Tech...

más de 4 años hace | 1

Respondida
How to plot a tangent line between two lines
Can use the Symbolic Math Toolbox for the exact result syms x real y_yellow(x) = 4187*x - 51372; y_red(x) = 20312*exp(0.0524*...

más de 4 años hace | 0

| aceptada

Respondida
Check for missing argument or incorrect argument data type in call to function 'abs'.
I doubt that res.control is a numeric array. Depending what how the signal "control" is formed in the simulation RTS, you'll pro...

más de 4 años hace | 0

Respondida
(Need Help) How to generate state-space model in Matlab?
The output in eq (2) should be: y = C*x + D*u i.e., D multiplies the input. It's not a constant in the output. To your que...

más de 4 años hace | 0

| aceptada

Respondida
how to extract a transfer function or state space model from a Simulink model
Check out doc linearize

más de 4 años hace | 0

| aceptada

Respondida
How to change the step size of rlocus
rlocus() takes a second argument that defines the gains, k, where the points are plotted. rlocus(sys,k) Specify k to make the ...

más de 4 años hace | 0

| aceptada

Respondida
How do you solve for constants in a system of equations?
syms P L E1 E2 % are all known values, E1 and E2 not used? syms I1 I2 E % also known values? syms C1 C2 C3 C4 syms x ...

más de 4 años hace | 1

Respondida
Solving Jacobian matrix for singularities
Becase this is an assignment, here's some code and hints to get started syms TH1 TH2 TH3 TH4 TH5 TH6 TH = sym('TH',[1 6]); % g...

más de 4 años hace | 2

| aceptada

Cargar más