![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/176241/image.jpeg)
Approximately equal sign in matlab plot
49 ビュー (過去 30 日間)
古いコメントを表示
Hi! I want to plot approximately equal sign on one axe of my plot in Matlab.
0 件のコメント
回答 (1 件)
dpb
2017 年 5 月 15 日
編集済み: dpb
2017 年 5 月 17 日
Get pretty close approximation (so to speak :) ) that way...
hAx=axes;
xlim([0,27])
set(hAx,'xtick',[0 15 25])
hT=text(7.5, 0.0, '\approx', ...
'fontsize',14,'fontweight','bold', ...
'rotation',90,'horizontalalign','center');
produces
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/176241/image.jpeg)
You'll have to rig up the actual axis limits it you want the asymmetrical ticks vis a vis position. Depending on what you actually have, may be able to just use 'xticklabel' with appropriate values at existing tick locations.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!