Réponse apportée
Sorting complex array with cplxpair and how to get the sort index?
ismember() might be what you're looking for. Do you care about how this works if the elements of k are not all unique? k = [ ...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
How make symbolic variables to a power equal to zero
syms a t Iy = [16*t^3 / a, a^2 * t] Iy(polynomialDegree(Iy,t)>1) = sym(0)

environ 5 ans il y a | 0

Réponse apportée
Plotting General Solution Of Differential Equation
Need to add one line of code syms y(x) D4y = diff(y,4); D3y = diff(y,3); D2y = diff(y,2); Dy = diff(y); eq= D4y +(2.*D3y)+...

environ 5 ans il y a | 0

Réponse apportée
How do I pass a transfer function as a variable in Simulink?
Yes, you can use either a Transfer Fcn block or an LTI System block. Suppose h is a tf object in the base workspace. For the Tr...

environ 5 ans il y a | 3

Question


Why Does eig() Not Throw an Error for Non-Square, Symbolic Input?
Example: M = [sym(zeros(2));sym('m',[2 2])]; M(1,1) = 1 eig(M) But filling in the top partition of M does yield the expected...

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

1

réponse

Réponse apportée
How to evaluate frequency response of a filter using freqz()?
Image 1 is plotted against against magnitude, not magnitude(dB). Just change the second input to plot() to be the db of the mag...

environ 5 ans il y a | 0

Réponse apportée
How to put step reference command on Simulink?
Constant = 5, feeds a Discrete Tansfer Fcn block with Numerator = 1, Denominator = [1 -1] and Sample Time = 3

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Is my Fourier Transform code correct?
Why whould this approach be expected to exactly recover the original signal? The DFT of the original signal is not zero everwher...

environ 5 ans il y a | 1

Réponse apportée
Step Response and Root Locus are give me different answers
The information in the datatip on the root locus plot is only applicable for a response defined by that pole location (and its c...

environ 5 ans il y a | 1

| A accepté

Réponse apportée
Fourier transform of sum of sinusoids
The exact Fourier transform can be found as: syms w1 w2 w3 t w f(t)=sin(w1*t)+sin(w2*t)+sin(w3*t); F(w)=fourier(f(t),t,w)

environ 5 ans il y a | 0

| A accepté

Réponse apportée
coeffs of symbolic equation
Is this what you're looking for: syms x y z=x+2*x*y+4.*y+5*x*y^2; [cxy,t]=coeffs(z,[x y])

environ 5 ans il y a | 0

| A accepté

Réponse apportée
How to represent 2 inputs 4 outputs closed loop state space system as a MATLAB code? please help!
According to doc connect the last two arguments to connect() should each be a char or cell arrays of char, in the order inputs...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Fourier Series using MATLAB
You probably want f1(x) = piecewise(x < -sym(pi), 0,x < 0,-x-sym(pi), x<=sym(pi), x+sym(pi), x>sym(pi), 0); You'll find some o...

environ 5 ans il y a | 0

Réponse apportée
Variable Substitution of a Function
It is correct, isn't it? x1^2 = (-x1)^2, x1*x2 = (-x1)*(-x2), and x2^2 = (-x2)^2

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Finding Symbolic Matrix Derivative
Declare theta and phi as functions, and then substitute after differentiating A syms phi(t) theta(t) phi_dot(t) theta_dot(t) A...

environ 5 ans il y a | 0

Réponse apportée
Symbolic matrices multipleid incorrectly
What was your actual check that the result does not pass? Maybe you need to simplify() the result? M1=sym('m1',[2 2]); M2=sym...

environ 5 ans il y a | 0

Réponse apportée
Load variables into a simulink model from a Matlab funtion.
Check out the doc page for the sim() command doc sim The sim() command has some options that do what you want, including the S...

environ 5 ans il y a | 1

| A accepté

Réponse apportée
Finding Time Constant from Root Locus of a Transfer Function
Right click a point on a rlocus plot and a data tip will pop up with useful information. Unclear what Vr is or how it relates t...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
How can I compute the CDF between - infinity to TH
Check out doc normcdf

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Spiral density function implementation
I'm going to assume that the question means that the conditional density of r given theta is normal with exepectation mu = theta...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Error in acker function, poles do not much size A?
poles should have three elements based on the size of A, but it only has one: >> poles poles = -4.0800e+03

environ 5 ans il y a | 0

Réponse apportée
Define a density function and draw N samples of it
The Statistics and Machine Learning Toolbox has lots of typical densities that can be used to generate samples of random variabl...

environ 5 ans il y a | 0

Réponse apportée
How to add matrix in a matrix which is obtained using syms function?
blkdiag() seems to work blkdiag(B1,B2) though interestingly enough it appears that blkdiag is not a supported function for the...

environ 5 ans il y a | 0

Réponse apportée
Conditional normal random distribution
I'm going to assume that for any value of theta, the radius (rho) is normally distributed with mean 2*theta and variance = sigma...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
z transfer function - cascade
Simulink has a host of commands (doc page) that can be used to create and edit block diagrams.

environ 5 ans il y a | 0

Réponse apportée
Plot convolution of two wave signals
If we assume that m(t) = c(t) = 0 for t < 0, we can show analytically that the convolution integral m(t)*c(t) is periodic with p...

environ 5 ans il y a | 1

Réponse apportée
Setting initial condition of State Space model (not block in Simulink)
I'm almost certain that the initial conditions are not a settable (is that a word?) property of ss objects. The initial conditio...

environ 5 ans il y a | 1

| A accepté

Réponse apportée
How to find response of a system through convolution?
I don't think you're doing anything wrong. Rather, what you're seeing is the effect of approximating a convolution integral wit...

environ 5 ans il y a | 1

| A accepté

Réponse apportée
Simulink Transfer Function Variable from Matlab
Try using a Constant block and set its parameter to wref, instead of using an Inport for wref. The error message sounds like th...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Postive PM and GM but unstable closed loop response
Closed loop stability needs to be determined before caculating GM and PM. In other words, GM and PM cannot be used to determine...

environ 5 ans il y a | 0

Charger plus