MATLAB Answers

0

What do these different colors of stem plot indicates?

Asked by Vishwaraj Manur on 14 Nov 2019 at 3:22
Latest activity Answered by Walter Roberson
on 14 Nov 2019 at 7:46
This is the stem plot for a complex value matrix of size 512x40. What does these different coluors indicates ?
How to unayse this stem diagrams?
What does the spacing of stem lines indicates ?
test.png

  1 Comment

I hope you can get answers from the given below code.
clear all;close all; clc
fig = figure;
x = linspace(1,3);
y = sin(x);
vectors = [complex(x, y)];
stem(real(vectors),imag(vectors),'Color',[1 0 0])
hold on;

Sign in to comment.

1 Answer

Answer by Walter Roberson
on 14 Nov 2019 at 7:46

complex value matrix of size 512x40
stem() applied to real() and imag() of that is going to create 40 different stem plots. The colors of those plots are chosen automatically if you do not use the Color parameter.

  0 Comments

Sign in to comment.