Yinx
Computer
- Mar 3, 2008
- 1
Hi guys and ladies! pls any help is appreciated, i'm trying to get the points of a graph, and calc an integration of each point and i'm having problems e.g
H= [1 -1 1 ];
t= 0:1:2;
plot(t,H);
(pls run)
given that the increment is 0.25, so i have 16 points on the graph, how do i get these points and integrate based on some criteria like
hb = -1; ha = 1;
if Ht<=hb
neg_mag= dblquad(p_funs,H,Hsat,Hstn,hb);
Ht>=ha
pos_mag = dblquad(p_funs,Hstn,H,Hsat,ha);
I'm trying to do this for each point so i get 8 pos_mag and 8 neg_mag
H= [1 -1 1 ];
t= 0:1:2;
plot(t,H);
(pls run)
given that the increment is 0.25, so i have 16 points on the graph, how do i get these points and integrate based on some criteria like
hb = -1; ha = 1;
if Ht<=hb
neg_mag= dblquad(p_funs,H,Hsat,Hstn,hb);
Ht>=ha
pos_mag = dblquad(p_funs,Hstn,H,Hsat,ha);
I'm trying to do this for each point so i get 8 pos_mag and 8 neg_mag