I have an M X N matrix. The first column is number of nodes, the first row is interference range, and the data in the cell is slot value. i want to plot a mesh graph using mesh function, but the error is data dimensions must agree.

2 ビュー (過去 30 日間)
code:
impval=xlsread('Booktest251.xlsx','a1:d7');
No_Nodes=impval(2:end,1)
Interfernce=impval(1,2:end)
slot_data=impval(2:end,2:end)
figure(1)
mesh(No_Nodes,Interfernce,slot_data)
???error==>mesh at 80
Data dimensions must agree
Any help will be appreciated
  1 件のコメント
Beneyaz Begum
Beneyaz Begum 2015 年 10 月 3 日
I could recognize my mistake . It should be mesh(Interfernce,No_Nodes,slot_data)

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File Exchange2-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