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

1 vue (au cours des 30 derniers jours)
STamer
STamer le 19 Juil 2013
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.

Réponse acceptée

STamer
STamer le 19 Juil 2013
Okay guys! I did it truly. Thanks in any case.
  1 commentaire
STamer
STamer le 19 Juil 2013
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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Fourier Analysis and Filtering dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by