Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Scaling imagesc input
Replies: 1   Last Post: Jan 3, 2013 8:14 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 12,966
Registered: 12/26/06
Re: Scaling imagesc input
Posted: Jan 3, 2013 8:14 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"asdf asdf" wrote in message <kc50ln$i5m$1@newscl01ah.mathworks.com>...
> Hi all,
> I currently have data in an m x n matrix, and associated n,m - sized vectors for the X and Y vectors for the axis, respcetively.
> The problem is that the Y data is not nicely, linearly, scaled. Rather than progressing [1, 2, 3, .. etc] it progresses something like [1, 5,6,7, 9].
> How can I scale the image to reflect this? Do I need to modify the matrix by introducing dummy data/rows to "scale" it?
> thanks!

You can use TriScatteredInterp() to turn it into a uniformly sampled array, then use imshow().

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum 1994-2015. All Rights Reserved.