Answered
How I can set the Ytick in logbase the same for all the subplots?
hello you should force the axis to the desired limits for each subplot section use this axis([XMIN XMAX YMIN YMAX]) %s...

6 years ago | 0

Answered
Sum the elements of row vectors
hello there are many ways you can change the vector content so the sums match this is one possibility : rowA=[3 6 2 4 3 1 1...

6 years ago | 1

| accepted

Answered
how to compare previous and next values in MATLAB?
hi I believe this works : function number_patter b = []; a = input ('Please input a number: '); while 1 b = input ('...

6 years ago | 0

| accepted

Answered
ADSR envelope shaping on audio file
hi so finally found the bug is due to improper t (time) definition t is supposed to span from 0 to 1.5 according to the enve...

6 years ago | 1

| accepted

Answered
Problem with data precision while generating square wave.
hi my suggestion f = 1000 ; Ts=1e-05; t=0:Ts:0.05; angl = 2*pi*(mod(f*t,1)); square_wav = 0.5*(sign(sin(angl))+1); ...

6 years ago | 0

Answered
Samlping frequency of normalized units in Digital Filter Design block in simulink
official answer now ... this is because you may not be comfortable with working with normalized frequency . If you prefer you...

6 years ago | 0

| accepted

Answered
Problem with ports widths and dimensions when using XY graph
hi I assume your x input is supposed to be a linear ramp, but this is not what you created in the first bloc (constant vector ...

6 years ago | 0

Answered
ADSR envelope shaping on audio file
ok so simple problem of vector dimensions mismatch in your code the env vector is either too short or the vector on which it...

6 years ago | 0

Answered
Problem using Derivative block
hello I personnaly would not use the derivative blocks In the worst case I replace with high pass filter (as you did) just t...

6 years ago | 0

| accepted

Answered
Problem using Derivative block
hi your initial conditions of the derivation blocks are probably zero (by default) the first derivative is the initial slope ...

6 years ago | 0

Answered
How to extract a portion of an image
hello below a simple code that loops over all files in the directory so have defined the lenght and width of the output image...

6 years ago | 0

| accepted

Answered
How To Obtain Fourier Series of Human Sound?
hi maybe a first package for audio file spectral analysis can alreadu help you ... enjoy %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...

6 years ago | 0

Answered
Averaging the selected vector ranges
hello my 2 fold suggestion , first is new code according to your expected results , and second is based on sliding averaging -...

6 years ago | 0

| accepted

Answered
Read data from CSV that contains multiple tables one after the other vertically
hello I worked hard for you today !! attached the main script (can loop over multiple csv input files ) + a subfunction to pr...

6 years ago | 1

| accepted

Answered
meas is unrecognized, attempting to read in a file and plot data
so the answer is : you are attempting to plot a variable (meas) that does not exist in your workspace when you load your fi...

6 years ago | 1

| accepted

Answered
input file - reading file
hello Eddy a few minor buggs - corrected in you code also no need to declare global variables - much more reliable to pass ar...

6 years ago | 1

| accepted

Answered
Plot of Short Term Energy (STE) of an acoustic signal and Number of frames
hello see : https://fr.mathworks.com/matlabcentral/fileexchange/23571-short-time-energy-and-zero-crossing-rate and if you fi...

6 years ago | 0

Answered
How to write a data in new file whenever repeating same row again
hello again so hoppefully I have the right code - :) In.file = readtable(Infile, 'ReadVariableNames', false, 'FileType', 'te...

6 years ago | 0

Answered
Plotting FFT for audio WAV file?
dear friends, here my little contribution to wav file spectral analysis... enjoy ! %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % FFT ...

6 years ago | 3

| accepted

Answered
Set specific colors in colormap
hello you should look in the File Exchange section, there are plenty of code available for custom colormap your request is alr...

6 years ago | 0

| accepted

Answered
How to use if-else in this scenario?
hello Armando I don't see what the first function is supposed to do ? output = input ? so what ? for the second task, this sh...

6 years ago | 0

| accepted

Answered
Code Won't Finish running
hello your code works. I first reduced your time span because it was taking forever... I also change the ode solver because -...

6 years ago | 0

Answered
RMS for Non-Sinusoidal wave or Contain aliasing
hello if you have a signal (vector), the rms value is always (by definition) rms_value = sqrt(mean(signal.^2))

6 years ago | 0

Answered
Generating high frequency sine waves - weird amplitude modulation
hello Florian seems I have answered the same question from the same person in this post : https://fr.mathworks.com/matlabcent...

6 years ago | 0

| accepted

Answered
Amplitude modulation as a function of signal frequency and sampling rate
hello Florian maybe you should have a reading on signal processing - see for example dspguide / chapter 3 http://www.dspguide...

6 years ago | 0

| accepted

Answered
How to write a data in new file whenever repeating same row again
hello this is my 2 cents submission - seems to do the trick on my matlab Infile = 'E:\newfile\Newfile.wam' In.file = rea...

6 years ago | 0

Answered
Controller in the feedback path?
hello Matteo both schemes are OK, they only differ for tracking performance assuming : plant transfer is P controller trans...

6 years ago | 0

| accepted

Answered
Is it possible to find the frequency specture from a signal imported from data points (excel)
hello for your help see my little demo below for audio wav file analysis. Just adapt the load to your data file format %%%%%%...

6 years ago | 0

| accepted

Answered
Record audio that is being played by speaker.
hello I am a big fan of matlab , but this time my suggestion will not be matlab based... why not using an audio wav file edi...

6 years ago | 1

Answered
looking up entire matrix for if then loop
hello why not simply do that (example for when A > 1 and count how many times that was true (output should be 4 times) A=[1 2...

6 years ago | 0

Load more