The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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: 13,022
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$>...
> 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 at NCTM 1994-2018. All Rights Reserved.