How to work out the position vector?

6 ビュー (過去 30 日間)
Sakusan Puwanendran
Sakusan Puwanendran 2017 年 10 月 31 日
回答済み: M 2017 年 10 月 31 日
The position vector a=[20sint;20cost;0] varies with time from t=0 to t=40 at 0.4 intervals. How do I calculate the values of a? I keep getting the message error using vertcat

回答 (1 件)

M
M 2017 年 10 月 31 日
If you define
t=0:0.4:40;
then you have
size(sin(t))
ans =
1 101
but 0 is a scalar of dimension 1*1
You should use
zeros(1,101);

カテゴリ

Help Center および File ExchangeNaNs についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by