Redrawing on pcolor - Scaling Problem

Hello everybody. I have a 100x100 matrix which indicates a basin. I am using pcolor to visualize the basin and now I need to draw the attractor on the same figure. For better comprehension please check : http://sprott.physics.wisc.edu/chaos/henondky.gif
Although my matrix has 100x100 data, actually it should be 1/10 scale namely x=[0 10] and y=[0 10] to draw the attractor on it. I'll appreciate any help on rescaling the basin to 10x10 to draw the attractor correctly. I tried everything however couldn't find a way to manipulate the axes without scaling the image.
More info: Regarding the image on the link, consider my x and y axis as 0 100 and I do want to change them into -3 and 3 without changing the image.
Thank you so much.

 採用された回答

Image Analyst
Image Analyst 2015 年 1 月 28 日

0 投票

I'd use image() or imshow(). pcolor doesn't plot the whole matrix - it chops off a row and column
A short illustration:
m = magic(3); % Make a 3-by-3 array.
pcolor(m); % Attempt to display the 3-by-3 array.
title('Only 2 by 2 array shown instead of 3 by 3');

その他の回答 (1 件)

Adelante
Adelante 2015 年 1 月 28 日

0 投票

Thank you for your reply. I'm gonna use image().

カテゴリ

ヘルプ センター および File ExchangeInteractions, Camera Views, and Lighting についてさらに検索

質問済み:

2015 年 1 月 28 日

回答済み:

2015 年 1 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by