Azzera filtri
Azzera filtri

Can you explain this line of code?

1 visualizzazione (ultimi 30 giorni)
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.

Risposta accettata

Image Analyst
Image Analyst il 2 Gen 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 Commento
Image Analyst
Image Analyst il 2 Gen 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.

Accedi per commentare.

Più risposte (0)

Tag

Non è stata ancora inserito alcun tag.

Community Treasure Hunt

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

Start Hunting!

Translated by