MATLAB QUESTIONS & EXPERT ANSWERS

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

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

How to know if a radio button is selected or not?
Alexander - 2021-02-26

I have one GUI with 4 Radio Buttons and one Push Putton. All of them are in one Button Group.   I want, if the user didn't select any radio button, t...

Distorted time domain signal for high pass butterworth filter designed
Rebekah - 2021-02-26

Distorted time domain signal for high pass butterworth filter designed using 'butter' command and filtered using 'filter' command Why does the filtere...

Finding peaks in EEG data
Travis - 2021-02-26

I know this question has been asked a number of times, but a thorough search did not help me find an answer and as I am very new to matlab I need some...

Get a Free Consultation or a Sample Assignment Review!