Respondida
Magnitude of a vector with unit
Looks like simplify pulls the unit^2 out of the root u=symunit; x=[1 2 3]*(u.m); norm(x) simplify(norm(x)) vpa(ans) x=[1 2...

alrededor de 3 años hace | 1

| aceptada

Respondida
Extract time signal of specific frequences from a given time series signal
Hi Chenghao, I suspect the issue is related to the duration of x relative to the dynamics of the transient response of the filt...

alrededor de 3 años hace | 0

Respondida
fft2 results don't match the analytical Fourier transform results
Hi Seyedalireza, The code below get closer, maybe all the way there, by addressing a few issues % Define the dimensions of the...

alrededor de 3 años hace | 1

| aceptada

Respondida
ODE45 error must return column vector
Try doing what the error message says and make sure that F is a column vector. Here's one option dFdt = [dCadt ; dCbdt ; dCcdt]...

alrededor de 3 años hace | 0

| aceptada

Respondida
Solving for Variables contained an interval
Referring to the form of y given in this comment: syms x real y = sin(x)*(2*cos(x) - 1) / ((1 + 2*cos(x)) * (1 - cos(x))) fp...

alrededor de 3 años hace | 0

| aceptada

Respondida
LQG issue: state estimates always perfect
Hi John, Disclaimer: I didn't actually look at your code. I think all of the the results you're seeing make sense. First, let'...

alrededor de 3 años hace | 1

| aceptada

Respondida
How do I use a root locus to find a value of K such that the damping ratio of dominant closed loop poles is a specified value?
Click on branch of the root locus and drag along the branch. The values in the datatip, which include the damping ratio, will co...

alrededor de 3 años hace | 0

| aceptada

Respondida
Plotting Fourier Series Expansion
Hi Hanif, Maybe this will help. First, the problem statement says that one period spans -1 < x <= 1 (I don't think it matter i...

alrededor de 3 años hace | 1

| aceptada

Respondida
After taking the time derivative of a symbolic expression, how do you then differentiate that new expression with respect to another variable's time derivative?
Check out functionalDerivative syms y x(t) t y = sin(x); ydot = diff(y,t) syms Dx(t) ydot(t) = subs(ydot,diff(x,t),Dx(t)) ...

alrededor de 3 años hace | 0

Respondida
Error using append and connect
Hi Abdul, The third input to connect, which is the connection matrix, is incorrect. It should have two rows. Check the doc page...

alrededor de 3 años hace | 0

Respondida
How to set integrator to make it reset its state to zero when the output negative and the state is negative?
Hi 耘岑, If the queue length can never be negative, how is it that the model is resulting in a negative queue length? In any cas...

alrededor de 3 años hace | 0

| aceptada

Respondida
'InitFcn' Error in Simulink
Hi Sule, If running the simulation in the base workspace using the sim command or the run button, just load the .mat file into ...

alrededor de 3 años hace | 0

Respondida
[Simulink] 'Discrete' state-space block with stable system diverging its output while 'continuous' one doesn't.
"The outcome is that, with exactly the same [A,B,C,D] matrices, ...." The A,B,C,D matrices mean different things in the State ...

alrededor de 3 años hace | 0

Respondida
How can I use the output value from the first simulation reactor as init value of a second reactor simulation block in Simulink?
Hi Raúl, Change the 'Initial Condition Source' in the Integrator block to 'external'. The integrator will then have another in...

alrededor de 3 años hace | 1

| aceptada

Respondida
LQI(): integrator response not as expected
Before getting to the LQI part of this, I'm curious about the approach for making an LQR regulator into a tracking system. Here...

alrededor de 3 años hace | 2

| aceptada

Respondida
Error getting characteristics from Linear Analysis Tool and PID Controller
Hi Vasiliy, Change the analysis point at the output of the plant from 'Open-Loop Output' to 'Output Measurement'

alrededor de 3 años hace | 1

| aceptada

Respondida
Assumption Ignored Symbolic PDF
I'm not aware of a way to put an assumption like that on an integral. In this problem, it seems like the actual form of f(z) do...

alrededor de 3 años hace | 0

| aceptada

Respondida
Convolution between two PDFs using product of Laplace transforms in Symbolic Toolbox
E(x) and F(x) are not valid pdfs. syms x real E(x) = 2.*(1 - 0.01)*dirac(x) + rectangularPulse(0, 300, x).*0.01./300 F(x) = ...

alrededor de 3 años hace | 0

Pregunta


Why Can't int Find a Simple Integral?
syms x real E(x) = 99/50*dirac(x) + rectangularPulse(0, 300, x)/30000 int on first term yields expected result int(99/50*dira...

alrededor de 3 años hace | 2 respuestas | 0

2

respuestas

Respondida
How does simulink use data stored in matlab as an array for each time iteration?
Hi M.I, 141 rows does not correspond to 15 sec with 0.1 step size. Perhaps it's just 14 seconds. Whether or not you need to us...

alrededor de 3 años hace | 0

| aceptada

Respondida
Surprising behavior in randsample
I don't see anything in the doc that says anything about the ordering. randsample is an .m file. The algorithm for without repla...

alrededor de 3 años hace | 1

| aceptada

Respondida
How make a high pass filter and give input to it simultaneously?
"How can i make a filter which can have a given cutoff frequency and also passes a custom made input (in the code)." Check out ...

alrededor de 3 años hace | 0

Respondida
Rename integration variable in symbolic result
I don't know if I'd call this 'easily', but it gets the desired result (I believe). syms t m b y(t) y0 C x(t) % definitions of ...

alrededor de 3 años hace | 0

| aceptada

Respondida
Matlab - Bode plot of discrete and continuous Function
One problem is that the discretization of the product is not the product of the discretization. But with T_sample so small, tha...

alrededor de 3 años hace | 0

| aceptada

Respondida
I have a time domain signal.I want to calculate energy of my signal......
Suppose we have a continuous-time signal syms t f x(t) = exp(-abs(t/5))*sin(2*sym(pi)*2*t) This signal is noncausal and has i...

alrededor de 3 años hace | 0

Respondida
Discrete Average on Simulink
If I understand the question correctly ..... Use a Discrete FIR Filter block to maintain a running average of 600 samples. Set ...

alrededor de 3 años hace | 0

Respondida
InitFcn Error at Simulink
The model (likely) needs information stored in a file called bldcData.mat in order to execute, so the InitFcn callback tries to ...

alrededor de 3 años hace | 0

Respondida
How to plot the continuous convolution result
Hi YAMENG, Have you considered computing the convolution integrals directly? Note scaling to get them all to fit on the same ...

alrededor de 3 años hace | 0

| aceptada

Respondida
Determine the Length of One Oscillation
I think this problem is supposed to be attacked like this. Define H(z) syms z H(z) = (-3*z^2 + 4*z)/(8*z^3 - 14*z^2 + 8*z - 2...

alrededor de 3 años hace | 1

Pregunta


Figure Control Buttons Out of Sync in Live Script
I'm running a live script. When I hover the mouse in the figure I the home, zoom out, zoom in, pan, and save buttons become vis...

alrededor de 3 años hace | 1 respuesta | 0

1

respuesta

Cargar más