hello
i've got problem may me solve.
i'm student , year has been full of exams. i've studyied courses didnt find time learn scilab. unluckly i've little "homework" using scilab so, i'm studying how use program , commands. time isn't , still have other exam complete , can't spend time on little homwork that, anyway, it's necessary.
don't hope receive complete homework but, i'll apreciate kind of can give me.
i've little draw of something... seems easy, cant manage it.
if able make it, or part, i'll need instruction // explain me have done because i'm planning learning how use scilab if 1 thing i've scilab courses.
thank much
here there exemple.
i believe need xpoly() function. here started:
you should study example (type xpoly @ scilab prompt) see example how open contour (it closed default). may want check see other way it. personal thought - right don't see educational value of assigned homework may ask name of class take? (in need assignment)code:// little program draws shape similar 'f' character // letter thickness 2, height 10 , width 8. // middle part width 6 // here dots defining corner points of "f" shape points=[0 0 8 8 2 2 6 6 2 2 0 10 10 8 8 6 6 4 4 0]; // on upper row - x coords; second row - y coords plot2d(0,0,-1,"010"," ",[-1,-1,10,12]); // create empty canvas specified dimensions (by last vector) // draws 0, 0 point (you'll see cross marking point - can use plot2d specify other //points - example 2 points marking dogs eyes appropriate marks) xpoly(points(1, :), points(2, :),"lines",1); // taken example (search xpoly). using // function can draw 2d design provided need // straight segments not curves , know points defining // shape // in case need open shape (the contour default closed): // obtain handle mentioned polyline (the handle integer // uniquely identifies polyline) // use handle modify options provided in example (again see xpoly on browser - code snippet inspired it)
pts
Forum The Ubuntu Forum Community Other Discussion and Support Education & Science Scilab Draw
Ubuntu
Comments
Post a Comment