답변 있음
How do I find out what type of block a Simulink block is?
Right click on the block. In the menu that pop-up menu, the identifier within the parentheses next to Block Parameters is the ty...

17일 전 | 0

| 수락됨

답변 있음
I need to find the values of K and a of system 1 that yields 15% overshoot and 𝐾𝑣=500 but I cant get pass this error. Please help
Need * for mulitpliation in the denominator: syms s K a g(s) = K/(s*(s+a))

18일 전 | 0

| 수락됨

답변 있음
How to Filter a Commanded Position to have Velocity and Acceleration Limits in Simulink
I'm not sure that it's feasible to meet all of the stated requirements, particularly "If the signal is not saturated, [it should...

18일 전 | 0

| 수락됨

답변 있음
hey. I keep getting an error for this code. If anyone could help me it would be greatly appreciated.
Should num also use poly2sym? Otherwise, gs is 1 x 2 transfer function matrix, which may be what you want, but maybe not. If y...

18일 전 | 1

답변 있음
ilaplace gives time limited result
Sometimse fplot() gets confused. Does regular plot() show the expected result? syms s syms t real A = 20e3; B = 10e3; C= 4...

19일 전 | 0

| 수락됨

답변 있음
Why Matlab do not respect the exponential matrix property \exp^{YXY^{-1}}=Y\exp^XY^{-1}?
The identity holds for the matrix exponential, which is implemented with expm(), not exp() (which is the element-wise exponentia...

19일 전 | 1

| 수락됨

답변 있음
Simulink - saw tooth signal minimum counter
Assuming that your signal has sharp corners .... One approach may be to: Input the signal into a Detect Increase block. The out...

19일 전 | 0

| 수락됨

답변 있음
Transform or eliminate states of mechss object
Even garden variety ss objects can't have the system matrices changed one by one sys = rss(4,2,2) % model with four states, tw...

20일 전 | 0

| 수락됨

답변 있음
Initializing parameters from an mfile function to a simulink file
If I understand your workflow correclty, it looks something like this: function simout = myfunction(inputarg) simparam1 = 5*...

20일 전 | 0

답변 있음
How to delay a loop in a function block?
I tried this in 2019a and it worked exactly as expected. The effect of the pause(1) is to make this (simple) simulation take 12 ...

20일 전 | 0

질문


What's the Best Way to Symbolically Define the Periodic Extension of a Finite Duration Signal?
Suppose I have a finite duration signal: syms s(t) s(t) = triangularPulse(0,1,1.5,t); fplot(s(t)) Now I want to define the p...

27일 전 | 답변 수: 1 | 0

1

답변

답변 있음
ODE45 producing NaN values for a set of differential equations
One problem appears to be that the initial condition of x(5) is 0, which results in a divide by zero in the computation of theta...

28일 전 | 1

답변 있음
Unique Block Parameters for Multiple Instances of the Same Referenced Subsystem or Custom Library Subsystem?
Parameterize Instances of a Reusable Referenced Model might be useful doc page, if I understand the question correctily.

29일 전 | 0

| 수락됨

답변 있음
Calculate the complementary bivariate normal.
I think you can use mvncdf as: Cb = mvndcf([alpha alpha],[inf inf],[0 0],[1 rho;rho 1])

29일 전 | 0

답변 있음
In 3 axis gyroscope the output (Wmeas) contains error or the output is without error?
Are you asking about a speciic gyro model provided in Matlab or is this a general question? In either case, the input to the th...

약 1달 전 | 0

| 수락됨

답변 있음
How to write piecewise function in symbolic form?
Use &, not && syms x(t) x(t) = piecewise(-2 < t & t <= -1 , t+2, -1 < t & t <= 1, 1, 1 < t & t <= 2, -t+2, 0) fplot(x(t),'-o...

약 1달 전 | 0

답변 있음
fft tool - amplitude dependence vs. frequency
For pure sinusoidal signals, the "expected" result is only obtained when the length, N, of the FFT satisfies N = M*Fs/F1 where...

약 1달 전 | 0

| 수락됨

답변 있음
How to use a matrix of 12*12 to form a matrix of 96*96?
It's too bad we can't do something like this: B = [1 2;3 4]; repeats = 2; % use a smaller example % R = blkdiag(repmat({B},1,r...

약 1달 전 | 1

답변 있음
Simulink continue simulation from last timestep
Unclear why Matlab Function blocks would slow anything down, at least not as a general rule. Save and Restore operating points ...

약 1달 전 | 1

| 수락됨

답변 있음
Is there a way to input an array from the workspace into a Simulink model chunk by chunk/per simulation step?
Can you use a From Workspace block? Use your 20 x 3 array and uncheck the box for Interpolate Data.

약 1달 전 | 0

답변 있음
Can someone help me implement my Heaviside function into my Kuramoto model please?
The function H seems to do the opposite of what you want it do, i.e., it's zero over the desired range and one outside that rang...

약 1달 전 | 0

답변 있음
how to plot the result of convolution? ; used conv()
I assume you meant x(t) = sin(pi*t) (not sin(pi*x)). Let's rewrite: x(t) = sin(2 * pi / 2 * t). So x(t) has period T = 2 as ...

약 1달 전 | 0

답변 있음
designfilt and get the numerator and denominator coefficients of my filter
Trying to convert such a high order filter to a tf representation is likely not going to work well. Maybe consider implementing ...

약 1달 전 | 1

답변 있음
pulse train with gaussian pulses in an irregular interval
Can't the d input to pulstran be set to whatever offsets you want, random or otherwise? Taking the example from the pulstran do...

약 1달 전 | 0

답변 있음
Unable to find explicit solution to a very simple equation
The equation in the question is an inequality, but the supposed solution posed in the question is for an equality: syms x real ...

약 1달 전 | 1

| 수락됨

답변 있음
How to load matlabFunction output into Simulink
matlabFunctionBlock can be used to generate a block directly into the Simulink model from the symbolic expression. It will only...

약 1달 전 | 1

답변 있음
Solving nonlinear system of ode in Simulink
The best way IMO is to get the equations in the form xdotdot = f(p,u,x,xdot), which you already did. But what did you mean by "...

약 1달 전 | 0

답변 있음
How to count number of pulses in a signal in Simulink
Similar problem addressed in this link.

약 1달 전 | 0

질문


How do I get an Expression to Use the Value of a Variable that was Assigned after the Expression was Defined?
Suppose I assign to a sym as follows: syms z f g Define f in terms of z f = 2*z Now assign a value to z z = sym(2)*1i; But...

약 1달 전 | 답변 수: 1 | 0

1

답변

답변 있음
How to change Axes values to 'String' instead of 'numbers' on Simulink Scope?
Make the signal input to the scope a Simulink Enumeration type.

약 1달 전 | 1

| 수락됨

더로드