Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Points on a graph

Status
Not open for further replies.

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor