Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Need help with determining proper function input dimensions

2 ビュー (過去 30 日間)
Evan Gronkoswki
Evan Gronkoswki 2017 年 11 月 20 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
[Deleted]
  1 件のコメント
John D'Errico
John D'Errico 2017 年 11 月 21 日
編集済み: John D'Errico 2017 年 11 月 21 日
The last time someone gave me undocumented code that I was supposed to figure out, to then use it? I scrapped their code, rewrote it from scratch. It took me less time to write code that did what I had to do than it would have taken me to figure out the code they gave me. The result was code I understood, code I could use, code that I could fix if there was a problem.

回答 (1 件)

KL
KL 2017 年 11 月 20 日
Without knowing what the function does or supposed to do it's hard to guess. There are also many other undefined functions inside.
First I'd advice to remove the first two lines of the function, not such a good sign,
clc;
close all;
Then reading further I realized,
  1. camino is supposed to be matrix with atleast 2 columns
  2. agentes and thermals are matrices with 8 columns
  3. remaining inputs should be scalars
The best idea is to ask the someone that gave you this code.

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by