2D plot with 3 axis and 3 column data

33 visualizaciones (últimos 30 días)
N/A
N/A el 14 de Feb. de 2020
Comentada: Star Strider el 20 de Feb. de 2020
I have 3 column data. I plot 2D 3 axis graph in Excel. I want the same also with colours and labels on Matlab. It is attached as graph name. Can you help me please?

Respuesta aceptada

Star Strider
Star Strider el 14 de Feb. de 2020
I have no idea which column is which curve.
Try this:
[D,T,R] = xlsread('Kitap3.xlsx');
Q1 = D(1:15,:);
time = linspace(0, size(D,1), size(D,1));
figure
yyaxis left
plot(time, D(:,1))
hold on
plot(time, D(:,2))
yyaxis right
plot(time, D(:,3))
hold off
Experiment with the column assignments to get the result you want.
See the documentation on yyaxis for details.
  6 comentarios
N/A
N/A el 20 de Feb. de 2020
Thank you :)
Star Strider
Star Strider el 20 de Feb. de 2020
As always, my pleasure!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots 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