フィルターのクリア

How can I put my results in Matrix form?(Easy question.)

2 ビュー (過去 30 日間)
STamer
STamer 2013 年 7 月 19 日
t x y
0 0 0
0.1 0.2994 0.8057
0.2 0.7725 1.4753
0.3 1.4192 2.0088
0.4 2.2 2.3795
0.5 2.9867 2.4999
0.6 3.7695 2.3634
0.7 4.5396 1.9774
0.8 5.1853 1.4398
0.9 5.6721 0.7807
1 6 0
For example t=0 then (P is function) P=0 0 , t=0.1 then P=0.2994 0.8057 , it goes on like that. But I don't want to input t each time manualy. I'm triying for loop but it didn't work.
I want to obtain matrix of P,
0 0
0.2994 0.8057
0.7725 1.4753
1.4192 2.0088
2.2 2.3795
2.9867 2.4999
3.7695 2.3634
4.5396 1.9774
5.1853 1.4398
5.6721 0.7807
6 0
my input will be t;
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Thanks and respect.

採用された回答

STamer
STamer 2013 年 7 月 19 日
Okay guys! I did it truly. Thanks in any case.
  1 件のコメント
STamer
STamer 2013 年 7 月 19 日
t2=[0 0.1 0.2 0.3 0.4 0.5 0.6 0.7];
for i=1:length(t2)
P{i}=curvefun( t2(i), B, X, k ) ;
end

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by