showing the error "??? Undefined function or method 'minus' for input arguments of type 'struct'."

hi i want to know how to subtract the one .mat file from the other .mat file .when i am subtracting one .mat file from other .mat file i am gating this error "??? Undefined function or method 'minus' for input arguments of type 'struct'. i also want to know how to call or (load ) .mat(which is the output of some other program) file in other program any help would be greatly appreciated thanks

 채택된 답변

The answer to a vague question is unfortunately vague. However, you can't subtract MAT files. You can read them and then do some subtracting operation on data. Explaining your error message very much depends on your data, but a simple demostration is:
a.b=1;
c.d=2;
c-a
??? Undefined function or method 'minus' for input arguments of type 'struct'.
It is simply not supposed to work like instead a.b-c.d. But I can't say what you exactly need.

댓글 수: 3

This is a vague, but exhaustively precise answer. +1
thanks Andreas
i am new to MATLAB can you tell me how to read & substract .MAT files
Harsahl, you cannot subtract .mat files . You can subtract variables that are stored in .mat files, but not .mat files themselves.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by