最適化を行う際に「struct から char に変換できません。」というエラーが表示される。
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
以下のように最適化を行う際にエラーが発生します。 MATLAB初心者のため解決方法を教えてください。
>> linsol = solve(intlinprog,'Solver', 'intlinprog');
エラー: char
struct から char に変換できません。
エラー: solve>isOption (line 459)
b = ~isa(a, 'logical') && any(strcmpi(char(a), ...
エラー: solve>getEqns (line 392)
while k <= numel(argv) && ~isOption(argv{k})
エラー: solve (line 226)
[eqns,vars,options] = getEqns(varargin{:});
0 commentaires
Réponses (1)
Hirokazu Tanaka
le 25 Oct 2018
手元の R2018b で実行すると
>> linsol = solve(intlinprog,'Solver', 'intlinprog');
エラー: intlinprog (line 85)
入力引数が不足しています。
とまた、違うエラーがでます。できれば現象が再現できるくらいの情報をもらえると原因も見つけやすいのですが・・。実行すれば同じ現象が再現できるコードがベストです。
0 commentaires
Voir également
Catégories
En savoir plus sur Robotics dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!