Community Profile

# arron lacey

41 total contributions since 2012

Contributions in
View by

Posted

cellfun muliplication
Hi - I have the following: where due to the inclusion of mag.* I get the following error: Matrix dimensions must agree. Erro...

4 years ago | 1443 views

Posted

cellfun muliplication
Hi - I have the following: where due to the inclusion of mag.* I get the following error: Matrix dimensions must agree. Erro...

4 years ago | 1198 views

Posted

using cellfun to loop through all elements of all cells
Hi I have the following: where I have two object u and r: and I want to take each cell of r, and take the cross product of e...

4 years ago | 2000 views

Posted

reshape
I have two objects: x = 0 1 and vec = vec(:,1) = 1 2 3 4 5 6 7 8 9 vec(:,2) = 3 5 6 1 2 9 0 3 5 (vec, size(x,1),siz...

4 years ago | 1166 views

Posted

position vectors
Hi everyone - I am trying to get the direction of vectors going from any two positions in a grid: say I have two grids a = 1 ...

4 years ago | 1185 views

Responded

Re: position vectors
Thanks Matt - good advice as usual!

4 years ago | 677 views

Posted

position vectors
Hi everyone - I am trying to get the direction of vectors going from any two positions in a grid: say I have two grids a = 1 ...

4 years ago | 677 views

Responded

Re: fill nxn matrix with vectors
or index into your matrices to extract rows/columns/pages of length 3" hi both steven and matt. ok so I can't store vectors in...

4 years ago | 2628 views

Posted

fill nxn matrix with vectors
hi, I am trying to fill a matrix where each element is a vector of length 3 in the following way: [x y] = meshgrid(a); b = zero...

4 years ago | 2628 views

Responded

Re: create matrix of vectors
HI Matt yes - sorry, I was replying to the last reply which was Nasser's, was going to reply to yours but got called into a meet...

4 years ago | 1639 views

Responded

Re: create matrix of vectors
also if I do: C=[a(:) b(:) zeros(N^2,1)] i get size(C(1,1)) = 1 1 but i actually need the size of each element to be 1 3 s...

4 years ago | 1639 views

Responded

Re: create matrix of vectors
Thanks very much for the reply. It is interesting to here that the element of a matrix can only be a scalar. Ideally what I want...

4 years ago | 1639 views

Posted

create matrix of vectors
Hi, i have two matrices: a = 1 2 3 4 5 6 7 8 9 b = 9 8 7 6 5 4 3 2 1 i want to create a matrix of vectors using the logic...

4 years ago | 1639 views

Posted

??? Subscripted assignment dimension mismatch
HI - how do I resolve the problem with the following. I am trying to create vectors distvec and magvec by using it's x and y com...

4 years ago | 3152 views

Posted

get vectors from a matrix
Hi, I am reading in an image and storing it into a 2d matrix. after doing some computation on it as shown here: ---------------...

4 years ago | 583 views

Responded

Re: ??? Error using ==> horzcat
if i do that: u = dx; v = dy; temp = size(u); a = zeros(temp) lambda = 1; Ox = [a,-v,a]; %Orientation in x direction Oy =...

4 years ago | 1879 views

Responded

Re: ??? Error using ==> horzcat
HI Nasser - thanks for your reply. Yes it then makes sense that 0 is not the same size as u and v which is why I am getting the ...

4 years ago | 1879 views

Posted

??? Error using ==> horzcat
I'm getting an error in the follow, can anyone help? im = im(:,:,1); w = size(im,1); h = size(im,...

4 years ago | 1879 views

Responded

Re: append z dimension in a function
if i change my code to add in a z dimension but make it constant I get: ---------------------------------- clear all; im = rgb2...

4 years ago | 1005 views

Posted

append z dimension in a function
Hi guys I want to take the cross product of O(c,r) and R(c,r) in the following code. It is two dimensional data, so a cross prod...

4 years ago | 1005 views

Responded

Re: calling a switch statement as a function
was being silly and not assigning J at the end of the function.

4 years ago | 1710 views

Posted

calling a switch statement as a function
Hi guys, I'm having trouble with calling a switch statement embedded in a function. main: ------------------------------------...

4 years ago | 1710 views

Responded

Re: edge orientation from image gradient
I have tried doing rot90(dy) etc etc, but this just ends up displacing asymmetrical images. i need to turn those gradient vector...

4 years ago | 4594 views

Posted

Hi - I am taking the gradient of in image (just a circle) where normalizing the gradient I get vectors perpendicular to the edge...

4 years ago | 4594 views

Responded

Re: finding edge orientation of an object.
bit of a type there - should read: O(x) = ((-1).^a).*(-dy , dx)

4 years ago | 1261 views

Posted

finding edge orientation of an object.
Hi everyone - i have an image which just has a filled circle. i want to be able to take the image gradient, and then from that -...

4 years ago | 1261 views

Posted

help computing biot savart law
Hi, I am trying to compute the magnetic field of an image (treat gradient of image as a current) using the biot savart law foun...

4 years ago | 1434 views

Posted

turn result of imread into vector field
Hi I'd like to read in image into my program using imread and then vectorize the image. The many 3 dimensional sample data makes...

4 years ago | 965 views

Responded

Re: error with cross product
I think there is a deeper problem than that. Even if I have: Img = imread('littlesquare.png'); Img = Img(:,:,1); Img = double(I...

4 years ago | 4619 views

Responded

Re: how to iterate through array (beginner)
yep you've convinced me that bwdist is the way to go. thanks!

4 years ago | 1213 views