필터 지우기
필터 지우기

Dot indexing is not supported for variables of this type.

조회 수: 2 (최근 30일)
Sateesh Kandukuri
Sateesh Kandukuri 2020년 10월 14일
댓글: Walter Roberson 2020년 10월 15일
Error in ferroskyrPos (line 36)
M=A.data;
  댓글 수: 3
Sateesh Kandukuri
Sateesh Kandukuri 2020년 10월 14일
Ok sir, I attached a new matlab file along with the out put file to process.
Sateesh Kandukuri
Sateesh Kandukuri 2020년 10월 14일
Dear Sudhakar Shinde,
I am a novice to Matlab, I am still in the learning stage. Could you please resolve the error?

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

답변 (1개)

Bjorn Gustavsson
Bjorn Gustavsson 2020년 10월 14일
When you get a problem like this it is because the variable is not of a struct as you expect. In general you can add a line with something like this:
whos A
just after your importdata-call. That will tell you what the variable is.
Another thing to do is to set a debug-stop like this:
dbstop if error
and rerun your script/function, then matlab will stop at the point of error, giving you access to the workspace where the error occured, so that you can have a look at the variables with interactive keyboard commands, you can even step up and down in the call-stack to
investigate how you ended up where you ended up. (This is a necessary skill to learn, not a funny one to do, but as someone said "to err is human"...)
HTH
  댓글 수: 8
Walter Roberson
Walter Roberson 2020년 10월 15일
https://pypi.org/project/OOMMFTools/ is python tools that can convert ovf files into .mat files.

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

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by