10 views (last 30 days)

Show older comments

I want to calculate the area of the material included in each pucket?

Mohammad Abouali
on 26 Dec 2014

Image Analyst
on 26 Dec 2014

Image Analyst
on 1 Jan 2015

You said "I need Area_1 to be a matrix of the number of the number of image files being processed. " A matrix is a 2D array and I already saw that you were using that equation for one of them so I figured the second column would be the "number" like you asked for. But now it seems like you just want a row or column vector (1-D array) rather than a matrix. To get that, simply index Area_1 with filesProcessed. Don't use k because some k's may be skipped if there is no image for that k.

Area_1(filesProcessed) = (d_1 / b) * 1963.5;

You don't need to credit me specifically in your work but maybe you can just say something like "I wish to thank the volunteers in the MATLAB Answers forum for their helpful guidance and suggestions" or something similar.

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!