error :Too many output arguments

I am getting an error as "too many output arguments" even though the function has declared for giving that given number of outputs
[D(1) ,alpha_n(1),M(1),cl(1)]= aeronew(ay(1),az(1),ht(1),v(1),time(1),alpha,M,cl); (this is the function call)
function [D,alpha_new, mach_new, cl_new] = aeronew(ay,az,ht,velocity,time,alpha,M,cl,i)(this is the function defenition

回答 (1 件)

Star Strider
Star Strider 2016 年 10 月 12 日

0 投票

You should get only one result from:
which aeronew -all
If you get more than one, that may point you to the problem.

カテゴリ

ヘルプ センター および File ExchangeFourier Analysis and Filtering についてさらに検索

質問済み:

2016 年 10 月 12 日

回答済み:

2016 年 10 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by