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

回答(0 个)

类别

Help CenterFile 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