フィルターのクリア

Cell contents reference from a non-cell array object

1 回表示 (過去 30 日間)
mohammad fahmi arieef khairil anuar
mohammad fahmi arieef khairil anuar 2015 年 12 月 17 日
編集済み: Guillaume 2015 年 12 月 17 日
hi im running this function like this, but there was an error, anyone can help?
>> DBFBA(model,10,'EX_succ(e)','Ex_glc(e)',10)
Cell contents reference from a non-cell array object.
Error in DBFBA (line 35)
if(~ ismember(list{i}, model.rxns)), rxnok = 0; end
here i attached the full coding of the function. i really hope that someone can help me run this function without errors.

回答 (2 件)

Walter Roberson
Walter Roberson 2015 年 12 月 17 日
You are calling the code incorrectly. Your second parameter, which you pass as 10, needs to be a cell array, each entry of which must be in the model gene list or the model reaction list (all of the entries must be the same type.)

Guillaume
Guillaume 2015 年 12 月 17 日
編集済み: Guillaume 2015 年 12 月 17 日
Well, you're passing a number, 10, as the second argument to the function whereas that function is expecting a cell array.
As the function has no documentation attached, the name of the function is meaningless, and we have no idea what your inputs mean, it's difficult to tell you how to fix it short of: Pass the correct arguments to the function.
If you are the author of the function (or know the author), I would also encourage you to rewrite it so it does not use globals and divide it into subfunctions. This is not a well written function.

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by