フィルターのクリア

Can I do this?

1 回表示 (過去 30 日間)
Will
Will 2012 年 2 月 8 日
編集済み: Cedric 2013 年 10 月 4 日
I'm tying to limit the length of an equation by doing this.
Al = @(x) 25.5e3+(300*x(1))+(x(1))^2;
Aj = @(x) (tan((2*pi)/9))*((x(1))^2+(100*x(1))+50);
Ak = @(x) (1000*(200*x(1))*(x(1))^2)/(2*tan((2*pi)/9));
func = @(x) x(3)*(47e3-Al+Aj+Ak);
What am I doing wrong?
I've read the guides on function handles etc, but I just cant understand it! I don't think I'm meant to be a programmer but I have to do this unfortunately.
Thanks in advance

採用された回答

Kevin Holst
Kevin Holst 2012 年 2 月 8 日
It looks like this is all that's wrong:
func = @(x) x(3)*(47e3-Al(x)+Aj(x)+Ak(x));
I'm assuming x is a 3 value vector?
  1 件のコメント
Will
Will 2012 年 2 月 8 日
Correct. Thank you. sorry for the stupid questions!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeWorkspace Variables and MAT-Files についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by