From: ALEKSANDER on 15 May 2010 07:47 I've a silicon sample of the size 20*30mm. I've used a device to measure the density of holes in the surface. This device returns a 440*230 matrix with the values measued all over the sample. When I analyze this matrix in matlab, I use both CONTOURF and IMAGESC to obtain a map over my sample. If this matrix is called m, i use imagesc(m) contourf(m,6) % six contour levels to display my sample. This works fine. However, the scale on the x-axis and y-axis runs from 1-440 and 1-230. I want these to be in the same scale as my sample, namley 0-20mm for the x-axis and 0-30mm. And also i could be interested in inserting a scalepar, wich i diside it to p pixels long, and hav the text '10 mm'. Is this possible? thank you
From: Steven Lord on 17 May 2010 13:21 "ALEKSANDER" <aleksander.rise.gallala(a)gmail.com> wrote in message news:hsm1jp$dul$1(a)fred.mathworks.com... > I've a silicon sample of the size 20*30mm. I've used a device to measure > the density of holes in the surface. This device returns a 440*230 matrix > with the values measued all over the sample. When I analyze this matrix in > matlab, I use both CONTOURF and IMAGESC to obtain a map over my sample. If > this matrix is called m, i use > imagesc(m) contourf(m,6) % six contour levels > to display my sample. > This works fine. However, the scale on the x-axis and y-axis runs from > 1-440 and 1-230. > I want these to be in the same scale as my sample, namley 0-20mm for the > x-axis and 0-30mm. And also i could be interested in inserting a scalepar, > wich i diside it to p pixels long, and hav the text '10 mm'. > > Is this possible? thank you Since both IMAGESC and CONTOURF refer to other functions in their help texts, look at the syntaxes given in HELP IMAGE and HELP CONTOUR respectively that include the X and Y inputs. For the scalebar, look at the LINE function. You may also need to use the AXIS function. -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
|
Pages: 1 Prev: Calling VB script from Matlab GUI Next: GUI's and tables...question from a noob |