How to set both yticks(left and right) in decimal values not exponential or scientific??
Ältere Kommentare anzeigen
I have a problem in setting yticks in decimal form.The code works for single y-axis.But when I try to use it in both y-axis(left and right) ,it shows me an error(Assigning to 2 elements using a simple assignment statement is not supported. Consider using comma-separated list assignment).The code:
F = openfig('energy vs time.fig');
hold on;
% Get the current axes handle
ax1 = gca;
% Create a copy of the axes on the right side
ax2 = gca;
% Set the y-axis exponent to 0 for both axes
ax1.YAxis.Exponent = 0;
ax2.YAxis.Exponent = 0;
axis square;
Akzeptierte Antwort
Weitere Antworten (1)
chicken vector
am 2 Feb. 2024
F = openfig('energy vs time.fig');
ax = gca;
ax.YAxis(1).Exponent = 0;
ax.YAxis(2).Exponent = 0;
axis square;
Kategorien
Mehr zu Descriptive Statistics finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
