フィルターのクリア

Generate a row vector of length n+1

1 回表示 (過去 30 日間)
patricia
patricia 2012 年 4 月 3 日
I have a function Funtion [t,u] = rk3(f,t0,tf,u0,n)
I am struggling defining the output argument t and u
The output argument t to be generated is a row vector of length n+1 containing the times t0; t1;...; tn and the output argument u to be generated is an array of size 2x(n+1) with the 1st column of u being u0 and with the (i + 1)th column of u being the approximation ui for i = 1;...; n.
i know that u(:,1)=u0 will set the first column of u to u0 and that u(:,i) refers to the i-th column f the matrix
would i be right in assuming that u(:,i+1) is the (i+1)th column?
any help will be appreciated. Thank you

回答 (1 件)

Rick Rosson
Rick Rosson 2012 年 4 月 3 日
Yes.
  4 件のコメント
Jan
Jan 2012 年 4 月 3 日
Shortest *and* exhaustive. Has there ever been a shorter answer in this forum? Perhaps "No." or "19"?
Rick Rosson
Rick Rosson 2012 年 4 月 3 日
Jan: Great minds...

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by