Loading multiple datafiles into MATLAB and plotting a colourmap
1 回表示 (過去 30 日間)
古いコメントを表示
Hi,
I have x data and y data for each value of z data. That is for each z-value I create a xy plot. I want to import all the xy plots for each z value to the matlab, remove the outliers in the xy plot for each z-value, and plot a colourmap with x-axis being the x-values and y-axis being the z-values and y being the colour intensity.
Can someone please help me in this ?
Thanks in advance.
1 件のコメント
Rohit Kulkarni
2022 年 7 月 2 日
Do you want to do something similar to this: https://in.mathworks.com/matlabcentral/answers/363065-plot-3d-colormap ?
回答 (1 件)
Constantino Carlos Reyes-Aldasoro
2022 年 7 月 5 日
In Matlab, the command "colormap" corresponds to the color/colours that are assigned to the intensity of a figure. You display 2D data with intensity values coded as colour with "imagesc" as well as other commands, for example:
[x,y]=meshgrid(1:10,1:10);
imagesc(x)
colormap(hot)
and
imagesc(y)
colormap(bone)
Different to imagesc and colours you can also display meshes, surfaces or many other options, and still can use colours:
mesh(x);colormap jet
surf(y)
Hope this helps you solve your problem
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Surface and Mesh Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!