My program is as follows:

n = 0:1:127;
s = [(s1.') (s2.') (s3.') (s4.')];

I wanted to plot the signal in MATLAB. I am getting a circular plot in which data is not proper. What are the steps for obtaining a clear data?


A snippet from the MATLAB documentation of the plot command:

plot(Y) creates a 2-D line plot of the data in Y versus the index of each value...If Y is complex, then the plot function plots the imaginary part of Y versus the real part of Y, such that plot(Y) is equivalent to plot(real(Y), imag(Y)).

The circular plot you're seeing is corresponding to the real part on the x-axis and the imaginary part of the y-axis.

If you're doing plot(s), then MATLAB is plotting each column in s.

  • $\begingroup$ thank you for your answer $\endgroup$ – Pranav kumar E.A May 6 '20 at 23:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.