Hello,
I have a table of X axis as cloumns and Y axis are rows and the cell values are Z axis, How can I plot a graph .
How to provide Z axis data in matlab ?
Below attached is my table of contents

6 commentaires

KALYAN ACHARJYA
KALYAN ACHARJYA le 30 Nov 2018
Attached table file?
Please check here
parnal patni
parnal patni le 30 Nov 2018
I saw the attached link before, but I do not understand how the input is given for Z axis .
KALYAN ACHARJYA
KALYAN ACHARJYA le 30 Nov 2018
Modifié(e) : KALYAN ACHARJYA le 30 Nov 2018
Please attach table file?
parnal patni
parnal patni le 30 Nov 2018
I alreay included the table for which I want to plot the graph for.
The table you see in the question above is the one which I want to plot
Mark Sherstan
Mark Sherstan le 30 Nov 2018
Please provide the actual data and not just an image we need to type in manually.
parnal patni
parnal patni le 3 Déc 2018

Connectez-vous pour commenter.

 Réponse acceptée

KSSV
KSSV le 3 Déc 2018
Modifié(e) : KSSV le 3 Déc 2018

0 votes

[T,txt,raw] = xlsread('Table_for3DGraph.xlsx') ;
x = T(1,2:end) ;
y = T(2:end,1) ;
Z = T(2:end,2:end) ;
[X,Y] = meshgrid(x,y) ;
surf(X,Y,Z)

1 commentaire

parnal patni
parnal patni le 4 Déc 2018
How to put legend depending on the colour shown in the graph?
Foe Example I need to put the colour and what it represents. What I need is not a colour map but instead put that colour shown in the range of number in colourmap separately.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by