Effacer les filtres
Effacer les filtres

How can I change the variable (z) by any other variable such as (w) in the figures?

1 vue (au cours des 30 derniers jours)
Aisha Mohamed
Aisha Mohamed le 13 Mar 2023
When I plot this figure and I want to show some points on it, I have got the varibles for example (x=-0.645, y=0.585 and z= -0.6363). But I used the variable (z) in the functions $f_{b}^{-}$ and other functions and I do not want it appear in the figures but I want to change it by other variable. My question is
How can I change the variable (z) by any other variable such as (w) in the figures?

Réponses (1)

Cameron
Cameron le 13 Mar 2023
[X,Y] = meshgrid(1:0.1:10);
Z = sin(X) + cos(Y);
p = surf(X,Y,Z,'EdgeColor','none');
p = surf(X,Y,Z,'EdgeColor','none');
p.Parent.View = [0 90];
p.DataTipTemplate.DataTipRows(3).Label = 'W';
dt = datatip(p,5,5);

Catégories

En savoir plus sur Graphics Object Programming dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by