请教“A 和 B 必须为浮点标量”处理方法。
Show older comments
请教大佬,准备对下式求积分,
其中
其中
但是一直报错:错误使用 integral,A 和 B 必须为浮点标量。我尝试了很多方法,但是一直不对,想请教一下问题出在哪里呢?该如何修改,感谢指点。
代码如下:
syms x
x=alpha+v_fei*t_4/r;%alpha_t实时的数值,用x表示,t-t_1=t_4
ft=@(x) v.*cos(x);%x坐标积分内函数部分
gt=@(x) v.*sin(x);%y坐标积分内函数部分
x_fei=x_0+integral(ft,t,0,t_4);
y_fei=y_0-int(gt,t,0,t_4);
Accepted Answer
More Answers (0)
Categories
Find more on Calculus in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!