MATLAB QUESTIONS & EXPERT ANSWERS

Ask an expert. Trust the answer.
Your academic and career questions answered by verified experts.

Illustration
How to know the location of maximum value in a vector?
Travis - 2021-03-02

I have a vector such as A = [1 2 2 3 2 4 5 7 6 6 5 4]. As we can see that 7 is the maximum value of this vector. I want to know the location of this m...

To desing low pass FIR filter analysis and application
Raphael - 2021-03-02

1.to design lp fir filter using fir1, fir2 ,firpm 2. use three cutoff frequencies 500-1000hz, 1001-2000hz,2001-3000hz 3.plot frequency response using ...

how to filter a signal using firlpnorm???
Aayushsingh - 2021-03-01

'y' is the input white noise and 'g' is the sine wave... h=y+g... how to filter 'h' using firlpnorm??  ...

matlab code for generating triangular wave
Gracesmith9 - 2021-03-01

I have to generate a matlab code  for generating triangular wave with monotonically increasing and monotonically decreasing amplitude. That means the...

How to fill a gap in a single width image?
Madalynn - 2021-03-01

Dear all, I have an 15X1 logical image for example like this:   0 0 0 1 1 0 0 0 1 1 1 1 0 0 0   As we see, the one's are not connected. I want to ma...

How to reduce the length of a vector?
Benjamin - 2021-03-01

I have A which is 8x2 vector   A = [185 194; 155 208; 152 244; 174 258; 214 257; 223 236; 220 211; 215 198];   I want to generate B which is 50% of ...

How to add a number to the negative values in a vector?
Samantha - 2021-03-01

I have a vector [A] which includes positive and negative values A = [1 4 5 2 -3 4 5 7 -6 -6]. I want to change those negative values by adding -180 to...

How to find corresponding frequencies after viewing amplitude in descending order?
yun-hun-jmai - 2021-03-01

Good day. Below I have a piece of  code written.     %% Peak detection Part % In this part, we have defined a threshold value. So, all peaks above ...

Subscript indices must either be real positive integers or logicals.
Ikramullah - 2021-02-26

Hi i am getting an error in this MATLAB code and im not sure whats wrong with it. %define verialbe lm=0.01; Rm=0.05; Kt=1.2; Kb=4.0; B=0.25; J=10.0; Â...

getpeaks too many input argument
Christian - 2021-02-26

hi i have this code     >> [x1, Fs] = wavread('chordA1.wav'); >> FFT1 = fft(x1); >> sq1 = abs(FFT1); >> sq1 = abs(FFT1); >> pks1 = getpeaks(sq1,'NPE...

Get a Free Consultation or a Sample Assignment Review!