Community Profile

Ross Anderson


56 total contributions since 2007

Contact

Contributions in
View by

Posted


vector-based transparent image
I'm trying to add an alphadata property to some data and save a vector-based (as opposed to bitmap) image. I can't find any way ...

3 years ago | 3351 views

Responded


Re: nd nearest neighbor grid point (not interpn)
found it. For those of you also wondering, interpn has a function called nearest, which contains the index ndx. I just returned ...

5 years ago | 2731 views

Posted


nd nearest neighbor grid point (not interpn)
Hi all, I'm currently interpolating over an ND grid with even spacing in each component (but these spacings vary): [vi] = inter...

5 years ago | 2731 views

Responded


Re: smooth edge detection
Hi IA, I have B = edge(A) or some similar filter. For this example, I do have 3 switches from red to blue or the opposite when...

6 years ago | 3762 views

Posted


smooth edge detection
I have a matrix A of 1s and 0s, like the following (red & blue): http://i.imgur.com/ThA0R.png I'm trying to fit smooth curves t...

6 years ago | 3762 views

Posted


hatch in eps
Hi all, I have a pcolor with two colors [-1,1]. It's fairly simple, so I'd like to make a hatch fill for each region, eg. / in -...

6 years ago | 2408 views

Posted


get xticklabel location?
Hi all, I'm trying to replace some tick labels with '\pi' and other latex. Since only text and axis labels seem to handle this, ...

6 years ago | 4785 views

Posted


text on pcolor
Hi all, pcolor(peaks) shading interp text(30,30,'hello world'); results in some text that you can only see when rotating away ...

6 years ago | 3872 views

Posted


discrete convolution matrix
Hi all, M = 2*N-1; A = sparse(M,N); for i=1:N end %convolution would happen as y = A*x, but I just need A However creating th...

6 years ago | 2294 views

Posted


simple initmesh question
From the examples, I can say [p,e,t]=initmesh('squareg'); to get a [-1,1]x[-1,1] domain. What about a [-A,A]x[-B,B] mesh? I can...

6 years ago | 2355 views

Posted


matlab, windows TERM signal?
Hi all, Windows popped up that annoying "UPDATES ARE READY: YOU MUST RESTART. Postpone?" while I was typing, and my keyboard mot...

6 years ago | 1210 views

Responded


Re: interpolate from patches
I asked too soon... help isocolors :)

6 years ago | 1728 views

Posted


interpolate from patches
Hi all, I'm solving a PDE on a mesh. The mesh is of the format similar to the results of DelaunayTri, but I'm dealing with both ...

6 years ago | 1728 views

Posted


ode15i and delta t
Hi all, I'm using ode15i to solve a system of DAEs. One of the terms is a time average of a function over the interval of integ...

6 years ago | 1605 views

Posted


numerically integrate over polygon boundary
Hi all, I have a vector field F(x,t), x is in 2D. I also have a polygon that is either a triangle or quadrangle. For a partic...

6 years ago | 1514 views

Posted


zeros of unknown dimension
I have a vector of unknown length with integer elements. The i'th element is the size of the i'th dimension of a matrix I'd like...

6 years ago | 1095 views

Posted


empty histogram
I use hist3(m_by_2_matrix) to make a histogram. I'm making a movie of the way the histogram changes over time. At certain times,...

6 years ago | 1381 views

Posted


remove duplicate rows in sparse matrix
Hi all, I have Ax=B where A and B are sparse. I want to reduce this so any row ax=b is unique, but I don't have the resources t...

6 years ago | 4718 views

Posted


zorder of plotyy
I'm using plotyy(x,y1,x,y2) to plot (x,y1) on the left y-axis and (x,y2) on the right y-axis. I make the marker property of y1 a...

6 years ago | 2972 views

Posted


TeX in xlabel()
I'm trying to produce the following LaTeX in my xlabel: "\sum\limits_{k_i \ne k_j} \left| k_i - k_j \right|" This simply fails....

6 years ago | 4372 views

Posted


faster ismember
I ran profiler on my code, and ismember is the culprit. In most cases, I simply need an index for a vector: if A = [0 1; 4 5; 6...

6 years ago | 3286 views

Posted


reset default path
I was doing some housekeeping. I was hoping by deleting from my path all ./toolbox/... directories and then setting the path wit...

6 years ago | 4871 views

Posted


save all variables in function scope to main workspace
I'd like to save all of the variables in my function to the main workspace for debugging purposes. I know I can do something lik...

6 years ago | 23650 views

Posted


easiest way to set path/defaults with windows7 permissions?
I recently upgraded to windows 7 and 2009b, and aside from the problems this bug is bringing me (http://www.mathworks.com/suppor...

6 years ago | 5198 views

Responded


Re: Anyone have a VPN working with 2009b?
I'm using 2009b because it came pre-installed on my laptop on loan from my university. Is there a way to downgrade to 2009a? (s...

6 years ago | 2451 views

Posted


Anyone have a VPN working with 2009b?
See bug report http://www.mathworks.com/support/bugreports/582876 This is stopping me from working. I'm wondering if any newsrea...

6 years ago | 2451 views

Responded


Re: tiled texture mapping
And what about plotting a surface on top of another surface? Try the following code, then rotate the window. The bar doesn't kee...

6 years ago | 3838 views

Responded


Re: tiled texture mapping
So looking into what you both have said, I think I can place a nicely tiled image over a solid shape. But what if I want to sur...

6 years ago | 3838 views

Responded


Re: tiled texture mapping
Hmm. Looks like that does quite a bit of image processing, but I think it's too complex for my needs. My image is tile-able and ...

6 years ago | 3838 views

Posted


tiled texture mapping
I have a 128x128 tile-able image that I'd like to tile over a rectangular object defined by 'bounds'. I figured out that if I ju...

6 years ago | 3838 views

Load more