Suppress Output

You can suppress the output using evalc, but this requires you to pass your expression in as a string. For instance if you were using: [A,B,C] = notMyFunction(d,e,f); You can use instead [T,A,B,C] = evalc(‘notMyFunction(d,e,f);’); And any output that would have gone to the console will now be buffered and stored in T.

Understanding Matlab FFT example

1) Why does the x-axis (frequency) end at 500? How do I know that there aren’t more frequencies or are they just ignored? It ends at 500Hz because that is the Nyquist frequency of the signal when sampled at 1000Hz. Look at this line in the Mathworks example: f = Fs/2*linspace(0,1,NFFT/2+1); The frequency axis of … Read more