필터 지우기
필터 지우기

Can you explain this line of code?

조회 수: 1 (최근 30일)
Mohammad Wajih
Mohammad Wajih 2015년 1월 2일
편집: Mohammad Wajih 2015년 11월 13일
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.

채택된 답변

Image Analyst
Image Analyst 2015년 1월 2일
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
Image Analyst
Image Analyst 2015년 1월 2일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by