How to plot a temperature contour from an excel file on MATLAB ?
21 views (last 30 days)
Show older comments
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1329495/image.jpeg)
My temperature data looks like this and it contains 148 rows and 730 columns . How can i plot this as a temperature contour on Matlab and i want the width to be 50 mm and the height to be 220 mm .
note: value represent temperatue at each point
2 Comments
Vilém Frynta
on 19 Mar 2023
Make it easy for us to help you. For now, it would be nice if you could attach the data, so we can work with them directly.
Accepted Answer
Mathieu NOE
on 20 Mar 2023
hello
maybe this ?
I am not sure to understand what you mean by
i want the width to be 50 mm and the height to be 220 mm .
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1330350/image.png)
data = readmatrix('a.xlsx');
contourf(data);
colorbar('vert')
14 Comments
Mathieu NOE
on 23 Mar 2023
that's very strange
can you type this is your command window :
exist('smooth2a')
exist('smoothn')
this is the help section of exist :
>> help exist
EXIST Check if variables or functions are defined.
EXIST('A') returns:
0 if A does not exist
1 if A is a variable in the workspace
2 if A is an M-file on MATLAB's search path. It also returns 2 when
A is the full pathname to a file or when A is the name of an
ordinary file on MATLAB's search path
3 if A is a MEX-file on MATLAB's search path
4 if A is a MDL-file on MATLAB's search path
5 if A is a built-in MATLAB function
6 if A is a P-file on MATLAB's search path
7 if A is a directory
8 if A is a Java class
EXIST('A') or EXIST('A.EXT') returns 2 if a file named 'A' or 'A.EXT'
and the extension isn't a P or MEX function extension.
EXIST('A','var') checks only for variables.
EXIST('A','builtin') checks only for built-in functions.
EXIST('A','file') checks for files or directories.
EXIST('A','dir') checks only for directories.
EXIST('A','class') checks only for Java classes.
EXIST returns 0 if the specified instance isn't found.
More Answers (0)
See Also
Categories
Find more on Spreadsheets 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!