How to sketch this in matlab? -2u(t+2)+2r(t+2)-2r(t-1)+u(t-2)-r(t-2)+r(t-4)-r(t-5)+u(t-7)+r(t-7)
20 ビュー (過去 30 日間)
古いコメントを表示
-2u(t+2)+2r(t+2)-2r(t-1)+u(t-2)-r(t-2)+r(t-4)-r(t-5)+u(t-7)+r(t-7) how to sketch this in matlab?
0 件のコメント
回答 (1 件)
Hernia Baby
2022 年 1 月 17 日
example
r = 1:10;
t = r;
u = r;
[r,t,u] = meshgrid(r,t,u);
F = -2*u.*(t+2)+2*r.*(t+2)-2*r.*(t-1)+u.*(t-2)-r.*(t-2)+r.*(t-4)-r.*(t-5)+u.*(t-7)+r.*(t-7);
scatter3(r(:),t(:),u(:),10,F(:))
1 件のコメント
Hernia Baby
2022 年 1 月 17 日
If your function means F(t), you can refer to below link.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!