Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
|
|
Re: Scaling imagesc input
Posted:
Jan 3, 2013 8:14 PM
|
|
"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().
|
|
|
|