Question


What Should Happen when a Live Script is Executed from the Command Line?
I have a Live Script myscript.mlx. I accidentally used myscript as a command on the command line >> myscript As soon a I hit ...

4 years ago | 1 answer | 0

1

answer

Answered
How can i generate random variablewith non chi square distribution for product Nakagami distribution
The Statistics and Machine Learning toolbox supports the non-central chi squared distribution, if that’s what you are looking fo...

4 years ago | 0

Answered
How can I create a custom probability distribution?
Check out the doc page for distributionFitter and the associated Distribution Fitter app. Despite the name, the app can be used ...

4 years ago | 1

| accepted

Answered
Different Fourier transform (fft) of the same signal with different sampling frequency
What is meant by "insensitive?" I don't see how DFTs could, in general, be the same for different samples of a continuous tim...

4 years ago | 1

Answered
Minreal function difference between 2021a and 2021b
Running 2021b in the Answers facility yieds results that are very close to, but not exactlyl the same as, what you got in 2021a....

4 years ago | 0

| accepted

Answered
Problem in matrix partition for uncertain system: how to find matrices A, B1, B2, C1, C2, D11, D12, D21, D22?
Edit: This answer thread was intended to be a response to this comment. %% Plant Paramiters Ts= 0.0005; f= 60; Wo= 2*pi*f; ...

4 years ago | 0

Answered
How can I generate the energy vector?
@studentmatlaber I believe that you are correct that in discrete time the energy of a signal is given by syms s(n) E assume(n...

4 years ago | 0

Answered
Is there any way to represent symbolic variables as I write from left to right?
Since R2021a, one can define symbolic matrices. I haven't really used them too much and so don't know how to get any further th...

4 years ago | 1

| accepted

Answered
DTFT on for filter
What exactly is not matching for h2? Did you do something different for h1? Looks like freqz returns the DTFT of h2 as it shoul...

4 years ago | 0

Answered
bodeplot(), setoptions - YLabel, How to set?
opts = bodeoptions; opts.Ylabel.String = {'mymag' 'myphase'}; bodeplot(tf(1,[1 1]),opts)

4 years ago | 1

Answered
error using ss2tf function
Define the nonlinear output equation y = h(x,u), take the jacobians wrt x and u, and evaluate them at the equilibirium point. Th...

4 years ago | 1

Answered
Why is the output for undersampling and oversampling of a CT signal same?
I'm not sure if this explains it clearly but .... in DT frequency defines an angle around the unit circle. In the oversampled ca...

4 years ago | 1

| accepted

Answered
How to make the zplane function to plot on a existing axes?
You can specify an existing axis via a third argument. I didn't see this on the doc page, but it does show up in the help, hel...

4 years ago | 1

| accepted

Answered
Manipulating Bode plot with known poles and zeros.
The poles and zeros in zpk should be in rad/s (at least with the default settings). So the poles are at -[GBW SP]*2*pi. Then ...

4 years ago | 0

Answered
why is the zpk function not producing the transfer function in MATLAB?
What output is expected? It looks like zpk() is returning a zpk object with poles and zeros at locations shown on the plot. a =...

4 years ago | 0

Answered
Why sim function clears workspace when is called from a script?
How do irradiacion, temperatura, and N_parallel get pulled into the simulation? I thought the command sim('solarcell.slx') wil...

4 years ago | 0

Answered
parfor treats variable as function
Is dronePaths loaded from map44.mat? If so, that could be the cause of the problem. See this link for discussion of similar iss...

4 years ago | 0

Answered
Evaluating derivative using symbolic toolbox
Two ways to do this: syms x f_of_x = x^2 * sin(x); der = diff(f_of_x,x) % I like to be explicit on the variable of differenti...

4 years ago | 1

| accepted

Answered
Accessing frequencies of arbitrarily selected histogram bins
The bin values are stored as propreties of the histogram object, which can be returned from histogram. rng(101) x = rand(20,1)...

4 years ago | 1

Answered
Is it possible to solve difference equation in MATLAB?
At least three ways this problem can be solved in Matlab that have been discussed in this thread. I thought it might be helpful...

5 years ago | 2

Answered
Interpretation of diskmargin()
The essence of a robust control system is that all points on the Nyquist plot of the loop transfer function be at a "far" distan...

5 years ago | 0

| accepted

Answered
Construct i.i.d. Bernoulli variables with MATLAB
Following code illustrates the expected result with p = 0.4. I wasn't sure why the Question was using 3-dimensional matrices, s...

5 years ago | 1

| accepted

Answered
Simulink transfer function matrix
If by delay transfer function you mean z^-1, the Delay block can accept an input of any dimension.

5 years ago | 0

Answered
why my deconvolution want fit my analytique form?
For a real and b complex, the theoretical equations should be (illusrated with short sequences) a = rand(1,5); b = rand(1,5) +...

5 years ago | 0

| accepted

Answered
how to substitute symbolic equation into symbolic equation, and to reorganize symbolic equations
syms epsilon_33 delta_0 d_33 s_33 f f_bl u k_s k_l n V A L_s t % known constants d_33 = 3400e-12; s_33 = 169e-12; f = 60; u...

5 years ago | 0

Answered
How can I check if a cell array contains multiple strings without loops ?
Assuming that numerical indices are desired (as apposed to logical) % example data FileNames={'20-MAG-C-Z1-S0A','20-MAG-C-Z2-S...

5 years ago | 0

| accepted

Answered
How to find constants of integral knowing initial conditions
Use solve() Raz=26.67*10^3; qo=20; L=3000; M=10*10^6; E=2.1*10^5; d=100; Izz=(pi*d^4)/64; syms x C1 C2 My_x=-Raz*x+(qo*...

5 years ago | 1

| accepted

Answered
DSP Format Discrete Transfer Function Matlab
You can use freqz() if you want, Because filt() returns a tf object from the Control System Toolbox, bode() or bodeplot() functi...

5 years ago | 0

| accepted

Answered
Find Bode Phase of Uncertainty models
I don't know if there is much control over what bode() does with a uss input, but you can get at the data in the plot after the ...

5 years ago | 0

| accepted

Answered
Using rlocus() in MATLAB
Hello @Tb, The basic idea of the root locus is that is shows the location of the closed loop poles as a function of a gain, let...

5 years ago | 1

| accepted

Load more