MATLAB Answers

How do I label pcolor y and x axes please

31 views (last 30 days)
Kamil Kacer
Kamil Kacer on 3 Dec 2020
Answered: Walter Roberson on 3 Dec 2020
How do i label pcolor axes please

  0 Comments

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 3 Dec 2020
img = sort(randi([0 255], 240, 320, 'uint8'));
subplot(1,2,1); imagesc(img); colormap(hot); xlabel('x'); ylabel('y');
subplot(1,2,2); p = pcolor(img); p.EdgeColor = 'none'; colormap(hot); xlabel('x'); ylabel('y');
(The two have diffrent defaults about which direction Y increases.)

  0 Comments

Sign in to comment.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by