Community Profile

Dave B


221 total contributions since 2008

Contact

Dave B's Badges

Contributions in
View by

Posted


3D equivalent of 'diag' option in bwmorph
Hi, I am trying to avoid corner connections of a voxel line in 3D and am looking for a function that does the same job as the ...

3 years ago | 1379 views

Posted


faster ind2sub in 3D
Hi, This question is about speeding up ind2sub, which from a search shows me that others have also been keen to find a faster ...

4 years ago | 2665 views

Posted


optimization plotfcn figure properties
Hi, I am using the 'plotfcn' option for an optimization problem to display some information to a figure. My question is: how can...

4 years ago | 1701 views

Posted


optimization, variables from a discrete list
Hi, Is there a way to ensure an optimizer only picks variable values from a predefined list of possibles? As an example, my all...

4 years ago | 5472 views

Posted


replace elements in matrix
thanks a lot

4 years ago | 2763 views

Posted


replace elements in matrix
If I have a matrix of zeros (size 100x100) and a matrix listing coordinates (row,col) of size 100x2. How do I replace elements o...

4 years ago | 2763 views

Posted


single route from regional minimum
Hi, I have been following Steve's excellent path finding series the last episode of which is here: http://blogs.mathworks.com/st...

4 years ago | 1347 views

Responded


Re: replace image color values with real values from scale
Yes I know the heights associated with each color of the scale image. scale_real contains the actual height values and is a 1 x...

4 years ago | 3106 views

Responded


Re: replace image color values with real values from scale
here they are: http://img208.imageshack.us/img208/5914/imageactual.png http://img12.imageshack.us/img12/7924/scaleactual.png T...

4 years ago | 3106 views

Responded


Re: replace image color values with real values from scale
Hi, thanks for your reply. Below is my code attempt so far. It doesn't quite work correctly as a surface plot check of the resul...

4 years ago | 3106 views

Posted


replace image color values with real values from scale
Hi, I have a 2D bitmap image of a top down view of a surface. The color of the image pixels represent the height of the surfac...

4 years ago | 3106 views

Responded


Re: volume of each tetrahedral
thanks very much for that. that is so much faster! excellent!

5 years ago | 5147 views

Responded


Re: volume of each tetrahedral
I meant to write that it *doesn't* give correct results after my vectorising attempt.

5 years ago | 5147 views

Responded


Re: volume of each tetrahedral
Thanks for that. I have implemented it in a loop as follows: T= DelaunayTri(x,y,z); coords=[x,y,z]; V=zeros(size(T,1),1); for i...

5 years ago | 5147 views

Posted


volume of each tetrahedral
Hi, is there an easy and fast way to calculate the volume of each individual tetrahedral from a 3D DelaunayTri mesh? T= Delaunay...

5 years ago | 5147 views

Responded


Re: Constrained Delaunay triangulation
I am also finding that MATLAB crashes on me when using constrained delaunay. I don't get any error message but a complete closur...

5 years ago | 4565 views

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

5 years ago

Responded


Re: 3D imresize?
Hi, I found this on the fileexchange which worked ok for me: http://www.mathworks.com/matlabcentral/fileexchange/26385-resize-an...

5 years ago | 23758 views

Posted


GA bit string constraint
Hi I am using a GA with the bit string representation (0 1). Over the length of the bit string I need to constrain the proportio...

5 years ago | 2830 views

Posted


expanding cell array
Hi, I have a 6x2 cell array like this: I have different sized vectors in some of the cell rows [1x2 double] in this case. I ...

5 years ago | 2113 views

Responded


Re: delaunay from voronoi
ah yeah thanks.

6 years ago | 3679 views

Responded


Re: delaunay from voronoi
thanks for your reply. is that the same for both 2d and 3d voronoi?

6 years ago | 3679 views

Posted


delaunay from voronoi
Hi, I know that delaunay and voronoi tesselations are duals, so if i have a voronoi how can I convert this to a delaunay? I ha...

6 years ago | 3679 views

Responded


Re: 3D imresize?
Hi, did you modify the sub function of imresize to handle the 3rd dimension? I am interested in doing this too as gaussian pyram...

6 years ago | 23758 views

Posted


3d voxel dithering
Hi does anyone know of any MATLAB code that can do 3d (voxel) dithering like the 2D bitmap dither built in function? Thanks.

6 years ago | 2027 views

Responded


Re: Simulation of Topologies
1D? surely 2D. it seems a very strange request to want to set up a parametric diagram of a bus. you will need to define what you...

6 years ago | 3717 views

Responded


Re: Simulation of Topologies
Just a few questions initially: 1) is it a 2D star? 2) a bus? again, 2D or 3D, would an image/photo/CAD model of a bus suffice, ...

6 years ago | 3717 views

Responded


Re: more efficient 'find' with 'and'
Thanks. could you clarify what 'C' is in the arrayfun line that you suggest please? Also, to answer your questions: 1) I was wri...

6 years ago | 2972 views

Posted


more efficient 'find' with 'and'
Hi, I have the following code, but it runs quite slowly: for k=1:1000 a=find(and((b(:,1)==c(k)),(b(:,2)==d(k)))); end Is there ...

6 years ago | 2972 views

Posted


creating patches
Hi, I have a set of vertices (cols: ID, x, y, z coords): 56 318.705352800000 330.850616500000 184.728744500000 57 318.650695800...

7 years ago | 1708 views

Load more