How can I make right axis off in Matlab plot?
52 views (last 30 days)
Show older comments
Babu Sankhi on 22 Jan 2022
Answered: Simon Chan on 23 Jan 2022
I want to show only top, bottom and left axis of my plot, by hiding right axis ? How can I do that ?can You please help me? I tried the codes below one of them resulted both y axis off and another gave the error!!
Simon Chan on 23 Jan 2022
Use function yyaxis and hide the right y-axis as follows:
h = figure(1);
hax = axes;
More Answers (0)
Find more on 2-D and 3-D 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!