Info

This question is closed. Reopen it to edit or answer.

How to set markspacing on matlab?

1 view (last 30 days)
John W. Z
John W. Z on 20 Jun 2016
Closed: MATLAB Answer Bot on 20 Aug 2021
Hi,
considering two matrix (1*1000 double):
a b
and the plot code:
figure('NumberTitle', 'off', 'Name', 'f(x) Comparison');
hold on;
set(gca,'YScale','log');
xlabel('Iteration');
ylabel('f(x)');
plot(a);
plot(b(1:20:1000),'--Diamond');
hold off;
It shows below which is apparently wrong.
How to modify that?

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!