user1012451
user1012451

Reputation: 3433

subplot ploterrhist in MATLAB

for n = 1:2
    for n = 1:100

        % some logics

    end
    subplot(2,n,1);
    ploterrhist(error)
end

I only get one graph and I don't even see subplot. Why?

Upvotes: 0

Views: 358

Answers (1)

AGS
AGS

Reputation: 14498

Try something like this

for i = 1:2
  for j = 1:100
    % some logics
  end
   subplot(2,1,i);
   ploterrhist(...)
end

Upvotes: 2

Related Questions