How to plot a simulation result overlaid on an experimental image?
1 回表示 (過去 30 日間)
古いコメントを表示
I have an experimental image as shown (16 pixels in the image = 1millimeter) -
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/351773/image.jpeg)
I have my simulation results plotted as follows ( x-axis is the radius vector in meter and y-axis is the corresponding height vector in meter)-
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/351776/image.jpeg)
Now I want to plot my simulation results on top of the experimental figure to compare both of them. How should I do it.
I tried to first use imshow( experimental image) and then hold on and then plot( radius, height) for the simulation result. But the problem is that both the figures/plot are not in the same scale. For the experimental image I have 16 pixels per mm while I only know the simulation results in meters. How should I proceed?
0 件のコメント
回答 (1 件)
KSSV
2020 年 8 月 26 日
You can use image and proved the x-axes and y-axes limits as in your plot use hold on and plot the data. Now the (x,y) data of both the images will sync up.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で 3-D Scene Control についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!