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 个评论

Attached table file?
Please check here
I saw the attached link before, but I do not understand how the input is given for Z axis .
KALYAN ACHARJYA
KALYAN ACHARJYA 2018-11-30
编辑:KALYAN ACHARJYA 2018-11-30
Please attach table file?
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
Please provide the actual data and not just an image we need to type in manually.

请先登录,再进行评论。

 采纳的回答

KSSV
KSSV 2018-12-3
编辑:KSSV 2018-12-3
[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 个评论

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.

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by