필터 지우기
필터 지우기

Runge Kutta order 3

조회 수: 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
Jan
Jan 2012년 4월 3일
http://www.mathworks.com/matlabcentral/answers/34356-generate-a-row-vector-of-length-n-1
Please, Patricia, avoid double posting a question. Althout neither Rick's nor mine answer took a lot of time. But inspecting both of them reveals, that they have the same contents. Therefore this is a waste of your time and of the time of all readers in this forum.

댓글을 달려면 로그인하십시오.

답변 (1개)

Jan
Jan 2012년 4월 3일
Yes.

카테고리

Help CenterFile Exchange에서 App Building에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by