Clear Filters
Clear Filters

Can you explain this line of code?

1 view (last 30 days)
Hello,
Do you understand this line of code?
% Read Data
[dataBx, dataBy, dataBz]= ReadData(infoFile, gemFile, dataFileBxr, dataFileBxi, dataFileByr, dataFileByi,dataFileBzr, dataFileBzi);
x = abs(dataBx);
y = abs(dataBy);
z = abs(dataBz);
If yes, then please explain this to me. Any kind of help is appreciated.

Accepted Answer

Image Analyst
Image Analyst on 2 Jan 2015
The code won't run because you're trying to use dataBx before it has been defined. You'd need to pass it in. Why don't you ask the author what it does, or ask him to put in more comments or try to do that yourself. It sort of looks like it tries to take the mean and stddev over an elliptical area but I don't really know what dataBx, etc. are.
  1 Comment
Image Analyst
Image Analyst on 2 Jan 2015
Some lines are displaying values, some lines are getting data from a file, some lines are getting bits from a number, some lines are getting the max and min values of arrays. I think if you just go down a line at a time you will probably understand what each line does. Sorry but I don't have time to put a comment in front of each line of code or small group of code lines for you. As far as the overall, big picture, I think you already know more about it than me.

Sign in to comment.

More Answers (0)

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!