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

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

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

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

4 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) +...

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

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

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

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

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

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

4 years ago | 1

| accepted

Answered
How to get Fourier transform of rectangular window as shown by wvtool function?. Why frequency domain of rectwin(M) using fft and wvtool are different?
It looks like wvtool is plotting the DTFT of rectwin(M) [h,w] = freqz(rectwin(64),1); figure plot(w,db(abs(h))) The DFT (as ...

4 years ago | 0

| accepted

Answered
lsim and transfer fcn block in simulink output different results
Simulink uses a continuous-time differential equation solver. The specific solver and solver parameters, like step size informa...

4 years ago | 0

| accepted

Answered
High-precision IFFT
Given that x is an array of high precision numbers, not symbolic expressions, it should be straightforward to implement the ifft...

4 years ago | 1

Answered
How to plot Gauss sums ?
There are at least two problems with the code. Assuming you want to compute numerical values of s, the code can't reference s i...

4 years ago | 0

| accepted

Answered
why margin() give positive phase & gain margin for unstable plant
I don't think margin() first verifies that the closed loop system is stable. It just applies the gain and phase criteria to the...

4 years ago | 0

| accepted

Answered
Matlab recommends me to apply 'subs' command but I have already used it to convert a symbolic matrix into a numerical one. What fails?
It looks like there is still one or sym objects left in A_num after the command A_num = subs(A_simb, P_simb, P_num); What is t...

4 years ago | 0

| accepted

Answered
Implementation of filter bank using fir1
Take advantage of the frequency shift property of the DTFT. For example Fs = 1000; f = (-0.5:.001:0.5)*Fs; L = 50; lpf = fi...

4 years ago | 1

| accepted

Answered
dbode results in phase shift that is wrong (I believe)
dbode() callse bode(), which in turn has an algorithm that tries to "unwrap" the phase by adding multiples of 360 deg across the...

4 years ago | 0

| accepted

Answered
How do I print a Simulink block's mask dialog?
Here is a way to get the mask parameters for a masked block, stored in a struct with field names the parameter names and field v...

4 years ago | 0

Load more