Effacer les filtres
Effacer les filtres

how to specify length on subplot

1 vue (au cours des 30 derniers jours)
Mr noobys
Mr noobys le 25 Juin 2019
Commenté : Mr noobys le 25 Juin 2019
Hi guys
so i want to subplot a vector and matrix in the same figure using this code
subplot(2,1,1)
plot(data);
subplot(2,1,2)
contour(wt);
the plot is ike this
untitled.jpg
the variable data (vector) length is 1600 and the variable wt(matrix) length is 1000
i want the subplot to be like this (the two variable have a same length,in this case i want the length to be 1000).
Annotation 2019-06-25 225952.png
how to do that?
thank youu very much

Réponse acceptée

infinity
infinity le 25 Juin 2019
Hello,
You could set xlim of the first figure.
More details, you should see this
https://it.mathworks.com/help/matlab/ref/xlim.html
  1 commentaire
Mr noobys
Mr noobys le 25 Juin 2019
Thank you very much! that's solve my problem :D

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by