Borrar filtros
Borrar filtros

Can you explain this line of code?

1 visualización (últimos 30 días)
Mohammad Wajih
Mohammad Wajih el 2 de En. de 2015
Editada: Mohammad Wajih el 13 de Nov. de 2015
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.

Respuesta aceptada

Image Analyst
Image Analyst el 2 de En. de 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 comentario
Image Analyst
Image Analyst el 2 de En. de 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.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

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

Start Hunting!

Translated by