Matlab doesnt recognize file in path while using readObj

回答 (1 件)

Guillaume
Guillaume 2019 年 7 月 20 日

1 投票

sarl = readobj(something)
Pass the content of the variable called something to the function readobj. If readobj expects a filename, the content of that something better be a file name. Of course, if you don't have a variable called something, then matlab will error with undefined variable "something".
sarl = readobj('something') %Note the ''
%or
sarl = readobj("something") %in R2016b or later
Pass the text something to readobj.
Two completely different things.
You meant:
sarl = readobj('butan.obj');
%or
sarl = readobj("butan.obj");

カテゴリ

ヘルプ センター および File ExchangeProblem-Based Optimization Setup についてさらに検索

タグ

質問済み:

2019 年 7 月 20 日

回答済み:

2019 年 7 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by