Clear Filters
Clear Filters

How to contour plot from columns of data?

4 views (last 30 days)
Hi. I have three columns of data. The first two columns are the x and y coordinates while the third one is the isoline column. Can anyone help me how to make a single contour plot in Matlab. I have attached the file here. Please help. Thanks.

Accepted Answer

Simon Chan
Simon Chan on 24 Feb 2023
Use function scatter may be more suitable for you:
filename = '';
opts = detectImportOptions(filename);
opts.DataLines = [9 Inf];
opts.VariableNames = {'x','y','IsoLevel'};
rawdata = readtable(filename,opts);
Simon Chan
Simon Chan on 24 Feb 2023
You may try to use the dot as the marker and adjust the LineWidth property in order for the plot to look like a line.
Bacha Munir
Bacha Munir on 24 Feb 2023
Okay. Thank you so much. God bless you.

Sign in to comment.

More Answers (0)


Find more on Contour Plots 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!