Info
この質問は閉じられています。 編集または回答するには再度開いてください。
Undefined operator '+' for input arguments of type 'function_handle'.
1 回表示 (過去 30 日間)
古いコメントを表示
t1 ...
t2a..
phi= pi./2;
k = -phi./(t2a(1)-t1(1));
U1 = (exp(1i*pi));
A1= V1 + U_in1 ; % this works ;
U2 = @(t) (exp(1i*(phi + k.*(t-t1(1)))));
A2 = V2a + @(t) U2(t) ; % how to correct this?
A =[A1; A2]
(t, A)
0 件のコメント
回答 (1 件)
Adam
2019 年 3 月 29 日
A2 = V2a + U2(t) ;
would be a function call. You only use the @(t) when defining a function handle, not when actually calling it.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!