Réponse apportée
How to fit a gaussian to unnormalized data
I think you need to normalize Y by it's sum (given the unit spacing of X), not its max X = -6:1:6; Y = [1 3 1 8 5 16 18 10 6 2...

presque 5 ans il y a | 1

| A accepté

Réponse apportée
Knowing the closed form solution of dx/dt = 2 sin 3t − 4x, how do I construct my Simulink?
So you need to express -cos(3*t + atan(4/3)) as the sum of two sine waves. If you're allowed to make the amplitude of one of ...

presque 5 ans il y a | 1

| A accepté

Réponse apportée
Advices on realizing a decreasing pulsing function with Simulink.
It sounds like what you want is the input, u, to be the cumulative ON-time, and the output, m_dot, should be zero when the drivi...

presque 5 ans il y a | 1

| A accepté

Réponse apportée
Matrix slicing in matlab
Use mat2cell x = rand(4,2); % the matrix c = mat2cell(x,[2 2],2); % the cell array % verify c{1} - x(1:2,:) c{2} - x(3:4,:)...

presque 5 ans il y a | 0

Réponse apportée
Unable to set gain control as a variable in Simulink, setting a numeric value works OK.
It turns red with the exclamation mark because you haven't defined the variable in any workspace that the model can see (typical...

presque 5 ans il y a | 0

Question


Sym Matrices can be Indexed with non-Logical/non-Integer. Bug?
Linear indexing into a sym array: A = sym([1 2;3 4]) A(.5) A(1.1) A([1.2 2.2]) But element indexing produces an error A(1...

presque 5 ans il y a | 1 réponse | 1

0

réponse

Réponse apportée
What Happened to the SrcWorkspace Name-Value Input to the sim() Command?
Looks like one has to use a Simulink.SimulationInput object as the input to the sim() command.

presque 5 ans il y a | 1

Réponse apportée
How update some variables each time tha I'am calling simulink from Matlab funtion
Try using a Simulink.SimulationInput object. Change the code to: function [Out] = Funtion (Var1, Var2 ....) in ...

presque 5 ans il y a | 1

Question


What Happened to the SrcWorkspace Name-Value Input to the sim() Command?
The SrcWorkspace Name-Value pair argument to the sim() command seems to have disappeared going from 2020b to 2021a. I searched ...

presque 5 ans il y a | 2 réponses | 0

2

réponses

Réponse apportée
How to get generalized plant model in state space (A,B1,B2,C1,D11,D12,C2,D21,D22) using augw command?
Does this Answer help?

presque 5 ans il y a | 0

Réponse apportée
Problem when graphing digital filter chebyshev
Need some some addition arguments to freqz(). Check its doc page for more information: Fs = 44000; Fn = Fs/2; ...

presque 5 ans il y a | 1

Réponse apportée
Request for help computing convolution of random variables via fft
Here is one option, illustrated with two widely separated normal pdfs: mu1 = 10; sigma1 = 2; mu2 = -5; sigma2 = 1; Zextreme =...

presque 5 ans il y a | 0

Question


Should the Symbolic Math Toolbox Enforce Assumptions on Assignment?
Consider the following: syms a real isAlways(in(a,'real')) So far, so good. But a = sym(2)*1i; % accepted w/o error or war...

presque 5 ans il y a | 2 réponses | 0

2

réponses

Réponse apportée
Conditional Normal Random Distribution
Yes. If you know mu and Sigma of the vector x and the first n values of x are given, then the density of x(n+1:end) is also nor...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
CDF of VOn Mises distribution
This code seems to recreate one of the CDF plots on the linked wikipedia page. It doesn't run very fast. syms x mu kappa x0 rea...

presque 5 ans il y a | 0

Réponse apportée
I have a symbolic expression from simplify which has obvious cancellations and other further simplifications: how do I force this?
Sometimes you can get furhter along by putting assumptions on the variables that reflect what they actually represent. For examp...

presque 5 ans il y a | 0

Réponse apportée
blkbuild command is not functioning in my matlab software, i have installed control system toolbox although programme is not executing.
Hmm. Not sure why that error is coming up. Block 1 is clearly defined. But Block 3 is not, so that should cause an error. Did ...

presque 5 ans il y a | 0

Réponse apportée
The modeling of delta function in the numerical calculations
Would it just be: deltafunc = @(t,tprime,deltat)((abs(t-tprime)<deltat/2)./deltat); % assumes deltat > 0 Not sure how that Xz ...

presque 5 ans il y a | 0

Réponse apportée
find overshoot, undershoot, rise time and fall time on a non step response function
I'm not sure what you mean by "fall time," so can't help you there. Why isn't stepinfo(y,t) sufficient? Is the data too nois...

presque 5 ans il y a | 0

Réponse apportée
Finding Impulse response of LTI system when input signal and output are given.
We know that y[n] = h[n] * x[n] where * denotes convolution. You have x[n] and y[n]. Let h[n] be denoted as [h0 h1 h2 etc.]. Us...

presque 5 ans il y a | 0

Réponse apportée
Plotting multiple step response for multiple transfer function
What's the basis for the assertion that GS should be unstable at K = 26.25? As you've seen, that clearly cannot be the case beca...

presque 5 ans il y a | 0

Réponse apportée
How to change the timebase of a discrete-time model.
This function might be what you're looking for: doc d2d

presque 5 ans il y a | 0

| A accepté

Réponse apportée
Determining the overshoot of step response without plotting it
Check out doc stepinfo

presque 5 ans il y a | 0

Réponse apportée
Error when ploting discrete time function
The function definition is implicitly assuming that the input, n, is a scalar. Looking at the first the term on its LHS: n = 2...

presque 5 ans il y a | 1

Réponse apportée
rlocus throws up error
Seems to work fine: sys = tf([2 5 1],[1 2 3]); rlocus(sys); You might have a different function tf() or rlocus() that is shad...

presque 5 ans il y a | 0

Réponse apportée
Why am I not able to obtain the Fourier Transform of exponent expression using Symbolic math?
Based on the assumption, I'm going to assume that f(x) = x*exp(-x) for x>=0 and f(x) = 0 for x < 0. In which case syms f(x) f...

presque 5 ans il y a | 1

| A accepté

Réponse apportée
getting error while using feedback
The Control System Toolbox does not support operations on sym objects. Having siad that, the error message that I'm seeing is f...

presque 5 ans il y a | 0

Réponse apportée
How can I differentiate an abstract symbolic function?
When I run this code (2019a) on my computer, I get: syms x y f(k) g(x,y) g(x,y) = f(x - 3*y); g_x = diff(g,x) g_y = diff(g,...

presque 5 ans il y a | 0

Réponse apportée
Convert transfer function from s domain to z^-1 domain
c2d supports different methods. The "pole-zero mapping" is what c2d calls "matched." However the result using "matched" does n...

presque 5 ans il y a | 0

Question


Should sympref Change the Behavior of rectangularPulse()?
The doc page for rectangularPulse states: If x = a or x = b and a <> b, then the rectangular pulse function equals 1/2. Verify...

presque 5 ans il y a | 1 réponse | 0

0

réponse

Charger plus