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

 採用された回答

Andreas Goser
Andreas Goser 2011 年 12 月 2 日
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 件のコメント

Jan
Jan 2011 年 12 月 2 日
This is a vague, but exhaustively precise answer. +1
harshal joshi
harshal joshi 2011 年 12 月 2 日
thanks Andreas
i am new to MATLAB can you tell me how to read & substract .MAT files
Walter Roberson
Walter Roberson 2011 年 12 月 2 日
Harsahl, you cannot subtract .mat files . You can subtract variables that are stored in .mat files, but not .mat files themselves.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeLarge Files and Big Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by