Creating a simple 2D contour plot from XYZ values from an excel table that I imported into Matlab
13 views (last 30 days)
Show older comments
Hello everyone, As mentioned in the heading - I'm having trouble using data in an excel table that I imported into Matlab to then plot up a visual 2D contours plan using that data (XYZ data) The main problem I am having is... "Subscripting a table using linear indexing (one subscript) or multidimensional indexing (three or more subscripts) is not supported. Use a row subscript and a variable subscript."
Data is attached
Any help greatly appreciated :)
4 Comments
Guillaume
on 25 May 2018
The problem is underneath in "" i.e It's telling me to use a row subscript and a variable subscript
Yes, you've told us the error you're getting but not what you're doing to get that error
Accepted Answer
More Answers (1)
Ameer Hamza
on 25 May 2018
Edited: Ameer Hamza
on 25 May 2018
You can first convert the table into an array. For example
data = readtable('Contours.xls');
dataArray = table2array(data);
contourf(dataArray);

0 Comments
See Also
Categories
Find more on Graphics Performance in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!