回答済み
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 ...

約3年 前 | 0

| 採用済み

回答済み
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...

約3年 前 | 1

質問


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

約3年 前 | 1 件の回答 | 0

1

回答

回答済み
Can I use a symbol as a variable?
Hi Prasenjit, Yes, you can do that syms m f = m^2 % expression that contains m as a symbol whos m % m is sym for m = 1...

約3年 前 | 0

回答済み
How to plot frequency spectrum of a piecewise function in matlab?
Hi Daniel, Regarding this comment, the use of fftshift and the multiplication by dt both have to do with using the Discrete Fou...

約3年 前 | 0

| 採用済み

回答済み
I want to find the filtered signal and remove the noise from the discrete received signal from the radar and convirte it to continuos
c2d (Control System Toolbox) or c2d (System Identification Toolbox) requires the first input be a dynamic system model. As far a...

約3年 前 | 1

回答済み
I have an error when simulate a linear delay system with sliding mode control
Hi yousra, I'm not quite sure what the code is trying to do. However, the reason for the lsim error is pretty clear, and there'...

約3年 前 | 0

| 採用済み

回答済み
How can I use the matlab function like fcn block
Hi titor7, The reason for the error in the original model show in this comment is because Simulink didn't have enough informati...

約3年 前 | 1

回答済み
Can't susbsitute a variable that is defined
Do syms C1 before calling subs. syms y(t) a eqn = diff(y,t) == a*y; S = dsolve(eqn) syms C1 subs(S,C1,2)

約3年 前 | 2

| 採用済み

回答済み
Running simulink model with multiple values of a parameter, and then plotting multiple results on the same plot
Instead of, or in addtion to, the scope, send your data to a To Workspace block. Check out this doc page for an example of how ...

約3年 前 | 0

| 採用済み

回答済み
Why does the step response to my discrete system not match between MATLAB and Simulink?
The explanation for the Simulink resutls is that the coefficients entered in the Discrete Transfer Function block don't represen...

約3年 前 | 0

回答済み
How to get state-space from a transfer funciton matrix
Don't use tf2ss. Check out ss instead to get started.

約3年 前 | 0

回答済み
linearize a non linear system
Normally, linearize is used to linearize a Simulink model. However, you may be interested in this Question first.

約3年 前 | 0

回答済み
Not simplifying to a usable answer
Hi Andrew, The answer key for Z1 appears to be incorrect. Also, I don't follow the equations you posted in the question. Anyw...

約3年 前 | 0

| 採用済み

回答済み
Discrete input to continuous transfer function
Hi Luca, I'm 99.99% sure that the output of a block with a Discrete Sample Time is held constant until it changes. I know that...

約3年 前 | 0

| 採用済み

回答済み
Output of a transfer function with input
The HeavisideAtOrigin should be 1 when using lsim M=2; b=14; q=20; num=[1]; G=tf(num,[M b q]); syms t F = 2*(heaviside(...

約3年 前 | 1

質問


Should this Symbolic Limit be Zero?
syms x a % complex by default syms n integer assume(abs(a)>abs(x)); assumptions limit(x^n/a^n,n,inf) Should that limit be z...

約3年 前 | 1 件の回答 | 0

1

回答

質問


Can Symbolic Assumptions be Combined or Simplified?
Suppose I have a variable syms z and assumptions assumeAlso(abs(z) > 1); assumeAlso(abs(z) > 2); assumptions The only valu...

約3年 前 | 0 件の回答 | 0

0

回答

回答済み
Integral from 0 to inf with imaginary numbers takes too long
Hi BOSHU Here is my attempt. syms Kt Ks Cs M m to % overwritten later syms x Assume t is real, is that a good assumption? ...

約3年 前 | 1

回答済み
How to make a simple plot with two lines?
Hi Macy, %table_a = readtable('Data1.xlsx'); table_a = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_fil...

約3年 前 | 0

| 採用済み

回答済み
A matrix is passed into Simulink fromworkspace,Invalid workspace variable specified as workspace input in 'test03/From Workspace1'. Time values must be non-decreasing.
If img is a contstant matrix, don't use a From Workspace block. Instead, use a Constant block and set its 'Constant value' bloc...

約3年 前 | 2

| 採用済み

回答済み
im trying to Find ∂z∂u when u=0, v=3, if z=sin(xy)+xsin(y), x=2u2+v2, and y=3uv.
Hi Matthew, Repeating the code from your comment clear; syms u v x y z ; %partial z z =sin(x*y)+(x*sin(y)); dzdx=diff(z,x)...

約3年 前 | 0

回答済み
A compact way to sum the elements contained in two cell arrays (considering the case of empty cells as well)
Would be easier if the first element of b weren't empty. Logic would need to be modified a bit if there is a possiblity that a c...

約3年 前 | 2

回答済み
How to convert symbolic output to numeric value in Symbolic Math Toolbox?
My first inclination was to stay symbolic all the way through and then compute numerical values at the end. syms lambda mu sigm...

約3年 前 | 0

| 採用済み

回答済み
it says Error in result(i)=piecewise_function(x(i)); result(i)=piecew
What should result be if x < 2 or if x > 5?

約3年 前 | 0

回答済み
How to transform a second order ODE to the format xddot=A.X+B.U
Hi Ítalo, Let p = x and q = xdot. Then the standard, first order state space model is [pdot;qdot] = [zeros(n) eye(n); A zeros...

約3年 前 | 0

回答済み
get the space states matrix in terms of output
Hi Vermeer, Based on this comment it sounds like you might want to pursue model reduction techniques. The Control System Toolbo...

約3年 前 | 0

| 採用済み

回答済み
Effect of zero padding on FFT amplitude
This thread started with one question about zero-padding the Discrete Fourier Transform (DFT) and the answers and comments broug...

約3年 前 | 2

回答済み
Pass input timeseries and block values into the sim command
Hi Yevgeniy Use a Simulink.SimulationInput object. More generally start from Run Simulations and follow the doc pages from ther...

約3年 前 | 0

| 採用済み

回答済み
How to give a vector as input in Simulink, to solve a system of differential equations ?
Use a 1-D Lookup Table block with a Clock connected to its input. Use the y-array and its corresponding times to specify the ta...

約3年 前 | 0

| 採用済み

さらに読み込む