Multiple error lines, tips to debug

1 回表示 (過去 30 日間)
ar
ar 2021 年 11 月 14 日
回答済み: Image Analyst 2021 年 11 月 15 日
Hello,
Here is the error that I am getting from a pre-written code. Where should I begin debugging from? I am new to matlab and do not understand if I should try to modify all of these scripts? Alternatively, which one of these statements should I start from? see error below:
Error in fast_oopsi/est_MAP (line 306)
C = C1; % update C
Error in fast_oopsi (line 166)
[n C posts(1)] = est_MAP(F,P);
Error in run_oopsi (line 95)
[fast.n fast.P fast.V]= fast_oopsi(F,V,P);
Error in PostProcess (line 558)
x = run_oopsi(processed_analysis(j).dF_cell(m,:));
  1 件のコメント
Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021 年 11 月 14 日
It is a bit difficult to give any considerable hints without looking at your codes/scripts. Thus, could you post your codes so community people can see what you are doing and how come these errs have popped up?

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

回答 (1 件)

Image Analyst
Image Analyst 2021 年 11 月 15 日
You didn't give the actual error. You gave the lines where the errors occurred (which is good since most people don't give that) but you didn't give the actual reason it thought
C = C1;
was bad. You might use whos on a line before that.
whos C
whos C1
C
C1
See Debugging tutorials.

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by