Answered

Finding Angle between 2 points

r1=sqrt((x1-xo).^2+(y1-yo).^2); r2=sqrt((x2-xo).^2+(y2-yo).^2); alpha=acos((x1-xo)/r1); beta=acos((x2-xo)/r2); theta=alpha-b...

Finding Angle between 2 points

r1=sqrt((x1-xo).^2+(y1-yo).^2); r2=sqrt((x2-xo).^2+(y2-yo).^2); alpha=acos((x1-xo)/r1); beta=acos((x2-xo)/r2); theta=alpha-b...

6 months ago | 0

Answered

How do i store all the results from a set of 'for' loops, not just the results from the last iteration?

Mean = 0.01:0.01:0.1 hsize = 3:1:26 sigma = 0.5:0.5:5 for m=1:length(Mean) for h=1:length(hsize) for s=...

How do i store all the results from a set of 'for' loops, not just the results from the last iteration?

Mean = 0.01:0.01:0.1 hsize = 3:1:26 sigma = 0.5:0.5:5 for m=1:length(Mean) for h=1:length(hsize) for s=...

6 months ago | 0

| accepted

Answered

Vectors must be the same length with .wav file

t = linspace(0, length(y)/fs,length(y)); I think you use linspace in wrong way. "y = linspace(x1,x2,n) generates n points. The ...

Vectors must be the same length with .wav file

t = linspace(0, length(y)/fs,length(y)); I think you use linspace in wrong way. "y = linspace(x1,x2,n) generates n points. The ...

7 months ago | 0

Answered

Not sure how to fix my matrix dimension problem

You are using for loop with variable i but you are not using i inside the loop. I'm not sure what you want to achive but maybe t...

Not sure how to fix my matrix dimension problem

You are using for loop with variable i but you are not using i inside the loop. I'm not sure what you want to achive but maybe t...

7 months ago | 1

Answered

Indexing into a matrix to create a plot

you can just try T_skin(t)= [(T * Area * Cp_air * rho_air)/(t-(t-1)) + Qgen + (Uambient * Area * Tambient)]/((Area * Cp_air *...

Indexing into a matrix to create a plot

you can just try T_skin(t)= [(T * Area * Cp_air * rho_air)/(t-(t-1)) + Qgen + (Uambient * Area * Tambient)]/((Area * Cp_air *...

7 months ago | 0

Answered

Detect face from multiple image, crop it and save it in different file.

If you want to read jpg images from one folder and save cropped images with same name and format but in different folder you can...

Detect face from multiple image, crop it and save it in different file.

If you want to read jpg images from one folder and save cropped images with same name and format but in different folder you can...

7 months ago | 0

Answered

Unable to perform assignment because the indices on the left side are not compatible with the size of the right side.

You're trying to asign 3x3 matrix to A(i) which is vector of size i. try A(1:3,1:3,i)=[cos(theta(i)) sin(theta(i)) 0;... ...

Unable to perform assignment because the indices on the left side are not compatible with the size of the right side.

You're trying to asign 3x3 matrix to A(i) which is vector of size i. try A(1:3,1:3,i)=[cos(theta(i)) sin(theta(i)) 0;... ...

7 months ago | 0

Answered

Trouble with rotating an image and saving it with different rotation angles.

You should try K(numberOfRowsInImage,numberOfColumnsInImage,i) = imrotate(I,a(i),'bilinear','crop') K(i) is just vector of siz...

Trouble with rotating an image and saving it with different rotation angles.

You should try K(numberOfRowsInImage,numberOfColumnsInImage,i) = imrotate(I,a(i),'bilinear','crop') K(i) is just vector of siz...

7 months ago | 0

Question

Volume of overlapping ellipsoids

I'm creating program that fills given 3D object with ellipsoids. How can I calculate filled volume if ellipsoids can overlap ? P...

7 months ago | 1 answer | 0

Answered

Randomly split data set and make sure that a sample of each class is included

If those are images I think best way is to load your data with class labels and then use splitEachLabel( __,'randomize') functio...

Randomly split data set and make sure that a sample of each class is included

If those are images I think best way is to load your data with class labels and then use splitEachLabel( __,'randomize') functio...

10 months ago | 0

Answered

function to find longest string of consecutive ones

This is quick made example how it may work. Nbest tells number of letters in the longest string and Lbest tells what letters the...

function to find longest string of consecutive ones

This is quick made example how it may work. Nbest tells number of letters in the longest string and Lbest tells what letters the...

10 months ago | 1

| accepted

Question

Creating 3D surface from binary slice images

I've got 60 slices and i'm creating binary mask of contours wchich i'm detecting on each. How can I create 3D model from those c...

10 months ago | 1 answer | 0