too many input arguments error when i pass struct to my function
古いコメントを表示
I am getting too many input arguments error when i pass struct to my function... struggling since last 2 days.... help requested....my called function and calling matlab script both files are attached :::
2 件のコメント
per isakson
2021 年 5 月 14 日
編集済み: per isakson
2021 年 5 月 14 日
"many input arguments error when i pass struct to my function" I fail to reproduce any such error on R2018b.
First I ran SwarmOptimization14May2021 and encountered
Undefined function or variable 'Vehiclen'.
Error in SwarmOptimization14May2021 (line 79)
U(Vehiclen)
Then I commented out the two final lines
U(Vehiclen)
t(Vehiclen)
and ran SwarmOptimization14May2021 again. This time without errors.
All calls of CostTimeDCal1 are commented out in SwarmOptimization14May2021
muhammad ilyas khattak khattak
2021 年 5 月 14 日
編集済み: muhammad ilyas khattak khattak
2021 年 5 月 14 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Solver Outputs and Iterative Display についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!