??? Undefined function or method 'load_meas' for input arguments of type 'char'.

Hi,
I am new to the matlab software. When I run the matlab script which I got from my collegue (he also uses same file for calculate defect reactions), I am getting the following error.
??? Undefined function or method 'load_meas' for input arguments of type 'char'.
Error in ==> reactions_solver_small_model at 66
[Nt{i}, time{i}] = load_meas( samples{j}, peaks{i} );
code for the above error:
for j = 1:length(samples)
for i = 1:length(peaks)
[Nt{i}, time{i}] = load_meas( samples{j}, peaks{i} );
end
Please help me out.
Regards,
Naveen

回答 (1 件)

Oleg Komarov
Oleg Komarov 2011 年 4 月 19 日

0 投票

You have to add the path where the function resides.
addpath
and if you wish to save the path for future use:
savepath
Prepone doc (doc addpath) to see the documentation.

1 件のコメント

Matt Tearle
Matt Tearle 2011 年 4 月 19 日
To clarify: it looks like load_meas is a (user-made) function, so there should be a file load_meas.m somewhere. If not, tell your colleague to give you the complete code! If so, add its location to the MATLAB path.

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

カテゴリ

ヘルプ センター および File ExchangeSearch Path についてさらに検索

質問済み:

2011 年 4 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by