Originally posted by: uec0
"hold on;"
If you want to mix a linear-scale plot and log-scale plot on the same figure, it gets a bit more complicated...
% Data
x = 1 : 1 : 100;
y = exp(x);
% Figure
figure;
% Background Axes
ax1 = axes( ...
'BackgroundColor', 'w', ...
'XAxisLocation', 'bottom', 'YAxisLocation', 'left', ...
'YScale', 'log' ...
);
hold on;
plot(ax2, x, y, '-', 'Color', 'b');
% Foreground Axes
ax2 = axes( ...
'BackgroundColor', 'none', ...
'XAxisLocation', 'bottom', 'YAxisLocation', 'right', ...
'YScale', 'linear' ...
);
hold on;
plot(ax2, x, y, '-', 'Color', 'r');
Originally posted by: uec0
"imagesc(x, y, M);"
Try ">> doc image" or ">> doc imagesc" for more information on how to do that.