Answered
Apply pattern to Matrix Indexes in For Loop
See if this does what you want: V = (1:18)'; % Original Vector Vr = resh...

9 years ago | 0

| accepted

Answered
Basic understanding on matlab
See the documentation on <http://www.mathworks.com/help/matlab/matlab_prog/array-vs-matrix-operations.html *Array vs. Matrix Ope...

9 years ago | 1

Answered
In an assignment A(I) = B, the number of elements in B and I must be the same.
I cannot follow what you are doing, and I cannot run your code. However, the most likely problem is that you need to _vecto...

9 years ago | 0

| accepted

Answered
Find function in Matlab
Try this: tol_val = 0.001; index1 = find(ismembertol(Compare,value1), n, tol_val); See the documentation on <https:/...

9 years ago | 1

| accepted

Answered
How to create a plot with this code?
You need to subscript and save *|‘Xx’|* and *|‘Xy’|*, I created *|‘Xxv’|* and *|‘Xyv’|* to do this, and also *|‘tv’|* to save t...

9 years ago | 0

| accepted

Answered
Don't know how to Loop
In your code, *|‘x’|*, *|‘y’|*, and *|‘z’|* are vectors. You do not need a loop, since MATLAB uses vectorised operations and wi...

9 years ago | 0

| accepted

Answered
Comparing two string columns
I have only a vague idea of what you are doing. My _guess_ is that you re comparing individual elements of both strings. T...

9 years ago | 0

Answered
Why is my graph not right?
Since this was due three weeks ago, I decided to code it myself for fun. There actually seem to be some errors in the homework ...

9 years ago | 0

| accepted

Answered
Delete some frequencies and apply ifft in a song
See the <https://www.mathworks.com/help/signal/ref/designfilt.html *|designfilt|*> (link) function to design your filter. If yo...

9 years ago | 1

| accepted

Answered
How to subtract row 1 of matrixA from row 2 of matrixB (matrices are of same size)
Try this: Out = B(2:end,:) - A(1:end-1,:);

9 years ago | 0

| accepted

Answered
How can I read a spectrogram like this?
It displays the fundamental and harmonic (overtone) frequencies of the violin playing the music as a function of time. Lower fr...

9 years ago | 1

Answered
Help with filtering of DSB modulation.
You need to make two changes to your filter passband design: t=-0.025:T/10:0.025; L = length(t); Fs = 1/mean(diff(t)...

9 years ago | 1

| accepted

Answered
Latex output of pretty
Have you used the <https://www.mathworks.com/help/symbolic/latex.html *|latex|*> (link) function? It will likely do what you wa...

9 years ago | 0

Answered
MATLAB can see only 2 channels of sound card(4 channels)
Core MATLAB only supports *|2|*-channel audio. You will probably need to use the <https://www.mathworks.com/help/instrument/ind...

9 years ago | 0

Answered
Finding the inflection point of a sigmoid function
Try this: p1 = 0.0389; p2 = 1.9158; p3 = 162.4272; p4 = 0.012; % simulate the function syms x f(x) =...

9 years ago | 0

| accepted

Answered
having blank plot at plotting control action in sisotool
Your code works for me (in *|R2017b|*. It takes a while to render, so be patient with it. <</matlabcentral/answers/uploade...

9 years ago | 0

Answered
Machine Learning and Prediction
For SVM, see <https://www.mathworks.com/help/stats/svmclassify.html *|svmclassify|*> (link). (The function names will change in...

9 years ago | 0

Answered
Radian calculation from either differential or gradient
That depends on what you want to do. It will probably involve array calculations, one of MATLAB’s strengths. Without knowing m...

9 years ago | 0

| accepted

Answered
Trouble with inverse laplace operation
You go about it with difficulty, because the Control System Toolbox and Symbolic Math Toolbox do not have any way of communicati...

9 years ago | 0

| accepted

Answered
how can I use bandpass filter on a .wav file
*_‘Error using FIR1 Expected Wn to be an array with all of the values < 1.’_* The *|audioread|* function will return the sa...

9 years ago | 0

| accepted

Answered
Finding equal members in a vector
If you only want the *_repeated_* values in the vector and their indices: V = [ 10 13 10 20 10 95 70 13]; ...

9 years ago | 0

Answered
As i using function "solve", matlab give me an error.
It objects to *|‘u’|* in the variable list. This works: eqns=xd [xh1,xh2,xh3]=solve(eqns,x)

9 years ago | 0

Answered
empty plotting using contourf
Your data throws this error when I try to plot it with *|contourf|*: Warning: Contour not rendered for constant ZData ...

9 years ago | 0

| accepted

Answered
I have a problem with the app
It is likely best to contact MathWorks through <https://www.mathworks.com/company/aboutus/contact_us.html?s_tid=gn_cntus *Contac...

9 years ago | 0

Answered
Question About Correction Factor
It seems that *|‘para’|* is a _very_ inefficient least-square parameter estimation assignment (likely explaining the variable na...

9 years ago | 1

Answered
Confidence Interval Estimation from a matrix
You might find the <https://www.mathworks.com/help/stats/prob.normaldistribution.html *|NormalDistribution|*> (link) function he...

9 years ago | 0

Answered
How to plot maximum and minimum signal (envelope) in frequency response in MATLAB
First, you have to subscript *|‘G’|* (call it *|‘G(32)’|* or something), or find some other way of including it. The others can...

9 years ago | 0

Answered
How can i compute a running frequency of 1s in a vector?
You are close, however you may be over-thinking it. This works: b = [0 1 0 1]; Out = cumsum(b)./(1:numel(b)) ...

9 years ago | 1

| accepted

Answered
fft second argument function matlab
The <https://www.mathworks.com/help/matlab/ref/audioread.html *|audioread|*> (link) function returns only the *|(Nx2)|* data, an...

9 years ago | 0

Answered
Function with duplicate name cannot be defined
Rename your function to be different from the MATLAB function name. For example, if the MATLAB function name is *|qwerty.m|...

9 years ago | 2

Load more