How to plot repeated sequence in a file using stem3 command?

2 visualizaciones (últimos 30 días)
Mir Lodro
Mir Lodro el 12 de Mzo. de 2019
Comentada: Mir Lodro el 16 de Mzo. de 2019
Hi,
I want to extract repeated channel response measurement from a file using loop and I want to plot using stem3 function. Can you please help with minimal working example. I shall be grateful.
Regards,
Mir

Respuestas (1)

Ankit Dutta
Ankit Dutta el 15 de Mzo. de 2019
It is my understanding that you are trying to plot a “stem3” graph using data from a file that has multiple sequences of data. If this is the needed requirement, you may read the data into a variable, and then use it to plot a stem3 graph. Additionally, you can then use the hold on command to plot each entry using a loop as per your use case on to the same plot.
Please feel free to refer to the documentation page linked below.
Here is a sample code for your reference.
x = randi(9, 2, 5); % Create Data
y = randi(9, 2, 5); % Create Data
z = randi(9, 2, 5); % Create Data
axis([0 10 0 10 0 10]) % The ‘axis’ Call Must Be Placed Here
figure(1)
hold on
for i=1:2
stem3(x(i,:), y(i,:), z(i,:))
end
hold off
  1 comentario
Mir Lodro
Mir Lodro el 16 de Mzo. de 2019
Thanks! I have know about this. I wanted to know how to extract repeated sequence from row vector which I cant plot using surfc. However, I have produced plot of the data using surf and surfc but it's not smart.

Iniciar sesión para comentar.

Categorías

Más información sobre Lighting, Transparency, and Shading en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by