Answered
Help creating Z from X and Y for a contour plot
You need the invaluable assistance of the *|meshgrid|* function to make your dreams reality: figure(3) force_amplitude=...

8 years ago | 1

| accepted

Answered
Low Pass Filter Design Kaiser Window
See the documentation on the <https://www.mathworks.com/help/signal/ref/kaiserord.html *|kaiserord|*> (link) function.

8 years ago | 0

Answered
How can we find a phone number with the signal (wav file) ?
Search MATLAB Answers for <https://www.mathworks.com/matlabcentral/answers/?term=dtmf *DTMF*> (link). There is also information...

8 years ago | 0

Answered
Choosing the correct sampling frequency for lowpass IIR
If your sampling frequency is *|200|* Hz, the highest uniquely resolvable signal in your data is *|100|* Hz (the Nyquist frequen...

8 years ago | 0

Answered
I am trying to plot
You need to vectorizse the division in the *|‘CL’|* calculation: CL=GW ./ (0.5*ro30000*(Vinf.^2)*S); ↑ ← VECTORI...

8 years ago | 1

| accepted

Answered
How to realize a parameter identification with genetic algorithm?
Your objective function does not allow the *|ga|* function to adjust any of the parameters of your model. (I would have expecte...

8 years ago | 0

Answered
How to plot the magnitude and phase of this Fourier Transform frequency response that contains jw?
If you define *|‘w’|* differently, and change (or delete) the *|‘ylim’|* assignment, you can see it. I defer to you to dete...

8 years ago | 1

| accepted

Answered
Please share the release notes of Vehicle Dynamics Blockset?
If you have a license for it (I do not so I cannot see it), you can access it in <https://www.mathworks.com/help/vdynblks/releas...

8 years ago | 0

Answered
I want a FFT plot of a .mat file at 8000Hz (in 3 seconds) to find the dominant frequencies but I'm not getting an peaks. Whats wrong with the codes?Thank you very much for any help!
My pleasure. Your code is correct if it produces the result you expect. You have calculated the *|‘freq’|* frequency vecto...

8 years ago | 0

| accepted

Answered
Datetick at feather plot
Apparently, *|feather|* and *|datetick|* don’t work and play well together. This workaround is the best I can do: t =...

8 years ago | 3

| accepted

Answered
Can anyone show me a sample of tripartite plot?Thanks
I am not certain what you want. There are *|124|* <https://www.mathworks.com/matlabcentral/fileexchange/?utf8=%E2%9C%93&term=tr...

8 years ago | 0

| accepted

Answered
"Subscript indices must either be real positive integers or logicals."
An *|int16|* value can still be negative or zero. If the output of *|rand|* is small enough, it could *|round|* to zero. A...

8 years ago | 0

Answered
Im trying to make a m script file to create transfer function from the motor torque to the pointing angle in TF form. I am totally unfamilar with Matlab and any help is appreciated!
Create the *‘Controller’* and *‘Satellite’* dynamic systems individually, then use the Control System Toolbox <https://www.mathw...

8 years ago | 0

Answered
how can i get n desired number after the comma of my MSE?
I am not certain what you are asking. If I am _guessing_ correctly, *|format long|* may do what you want. See the document...

8 years ago | 0

| accepted

Answered
For a function, I have 3 surf plots and need the max and min point displayed in each plot. How do I do this?
This is the sort of approach I would use: myfun = @(x,y) exp(-(x.^2 + y.^2)); [X,Y] = meshgrid(-1:0.1:1); Z = my...

8 years ago | 0

Answered
Using freqs to plot butterworth filter frequency response
I don’t understand what you mean by ‘mirrored’. When I used: w = logspace(-3, 2); and used *|semilogx|* instead of...

8 years ago | 0

Answered
How to solve a system of n differential equations?
You appear to have a dynamic system. The Control System Toolbox would be more appropriate. One way to solve it would be to...

8 years ago | 0

| accepted

Answered
Decimal format for values less than 1
See the documentation on the <https://www.mathworks.com/help/matlab/ref/format.html *|format|*> (link) function.

8 years ago | 0

Answered
Need help - Looping equations and storing results
See the documentation on <https://www.mathworks.com/help/matlab/ref/for.html *|for|*> (link).

8 years ago | 0

Answered
Hi, does anybody knows how to plot graph using matlab from a txt file?
Your file has *|220250|* elements, so it takes a while to read it and plot it. Try this: D = readtable('0.5hz.txt', '...

8 years ago | 1

| accepted

Answered
Read .dat files
See if <https://www.mathworks.com/help/matlab/ref/importdata.html *|importdata|*> (link) or <https://www.mathworks.com/help/matl...

8 years ago | 1

| accepted

Answered
How do you put the constant e on matlab
You may want the exponential function <https://www.mathworks.com/help/matlab/ref/exp.html *|exp|*> (link), the base of the natur...

8 years ago | 4

| accepted

Answered
how to use notch filter i onlyn eed lower than 50hz
The demo on <http://www.mathworks.com/help/signal/ug/remove-the-60-hz-hum-from-a-signal.html *Remove the 60 Hz Hum from a Signal...

8 years ago | 0

| accepted

Answered
denormalization of a data
Try this: A = [2063 2003 1992 2004 2070 2246 2678 3083 3161 3160 3176 3130 3038 3047 29852930 3069 3228 3087 2929 2790 260...

8 years ago | 0

Answered
I get error undefined function or variable 'n' but don't show the line number.
You have to call the function from a script, _after_ you have defined values for all the arguments in your workspace: n = ...

8 years ago | 0

| accepted

Answered
I am trying to solve a simple system of first order differential equations; Monod's classic model for bacterial growth, and require assistance in specfing the initial conditions and ultimately plotting the functions.
This should get you started: <https://www.mathworks.com/matlabcentral/answers/43439-monod-kinetics-and-curve-fitting#comment_894...

8 years ago | 0

Answered
How to set the minimum value of an array to a negative number?
The easiest way is to ask for _two_ outputs from the *|max|* and *|min|* functions. The second output is the index of the first...

8 years ago | 0

Answered
Error Inputing Data for a 3-D Histogram
You have to put single quotes around the file name: D = load('Peak 1 Matlab Data Insert.xlsx'); I always use the functi...

8 years ago | 0

| accepted

Answered
Change the location of a text in a plot
Your *|text|* call is interpreting your *|‘font_size’|* variable as the *|y|*-coordinate. The solution is to use different ...

8 years ago | 0

| accepted

Answered
Column multiplication in the same matrix
Try this: x11 = [1 2 3; 4 5 3; 2 8 3]; [m12, n12] = size(x11); for k1 = 1:n12 x11t = x11; ...

8 years ago | 0

| accepted

Load more