Effacer les filtres
Effacer les filtres

Two surface with different value of x axis

2 vues (au cours des 30 derniers jours)
Mohammad Nasiri
Mohammad Nasiri le 22 Avr 2022
Commenté : Mohammad Nasiri le 22 Avr 2022
I have two table of data.
Considert Y axis as 1 to 10 for both
X axis value from 10 to 3000 with 10 step (10:10:3000) for one and 10 to 4200 with 50 step (10:50:4000) for the others.
and Z is the output of multiple functions for each.
Is it possible to plot these two surface (surf) in one diagram?

Réponse acceptée

Torsten
Torsten le 22 Avr 2022
surf(X1,Y,Z1)
hold on
surf(X2,Y,Z2)
Or what do you mean ?
  4 commentaires
Torsten
Torsten le 22 Avr 2022
Modifié(e) : Torsten le 22 Avr 2022
[XX,YY] = meshgrid(X1,Y);
[XXX,YYY] = meshgrid(X2,Y);
surf(XX,YY,Z1)
hold on
surf(XXX,YYY,Z2)
Test whether the sizes of XX,YY and Z1 as well as XXX,YYY and Z2 are equal.
Mohammad Nasiri
Mohammad Nasiri le 22 Avr 2022
Thank you so much
the sizes were not equal.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Lighting, Transparency, and Shading dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by