COBRA cannot read .xml model
3 ビュー (過去 30 日間)
古いコメントを表示
I downloaded a xml model into matlab, and installed COBRA but I cannot load the model

0 件のコメント
採用された回答
Walter Roberson
2025 年 9 月 18 日
size() returns a vector with at least two elements. Historically, the colon operator ignored everything except the first element of its inputs, but as of R2025a (I think it was) the colon operator starts erroring when given non-scalar inputs.
The code needs to be changed to
for i = 1:size(relarray,1)
for compatibility with previous use.
It would not surprise me if relarray could end up being a row vector though, so potentially length(relarray) might be better than size(relarray,1), perhaps.
2 件のコメント
Walter Roberson
2025 年 9 月 18 日
There does not appear to be any function named print in the COBRA Toolbox. https://opencobra.github.io/cobratoolbox/stable/modules/index.html
As a result, you are invoking the MATLAB print function which is intended to output graphics objects.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Import Data についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
