Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Problem in using my own function.
Replies: 3   Last Post: Nov 27, 1996 10:47 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Gi-Choul Ahn

Posts: 7
Registered: 12/7/04
Problem in using my own function.
Posted: Nov 25, 1996 9:53 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi, there!

I just succeeded in translating a FORTRAN subroutine named
PNPOLY into m file, which is related to making a geometric
model using Randolph Franklin's algorithm(1972), and testing it.
But I have still one problem in my m-file. Whenever I execute
my m-file, it always return the output value in the screen,
although I used semicolon in testing file of that function.
My function's prototype is
function inout = pnpoly(px,py,x,y,n)
and I called it in my MODEL.M file using next command:
...
LM(m,n)=pnpoly(i,j,x1,z1,9); <-I used ;(semicolon) here surely!
...
Because ixj is 31x21 matrix, I need to be sitting absent-mindedly
more than 3 minutes until for-loop is over. Any suggestions?

Thanks in advance.

Gi-Choul Ahn

--
Center for Lithospheric Studies
The University of Texas at Dallas
Programs in Geosciences
__H) 972-407-9978 O) 972-883-2843
__R) BE. 3.526
Fax)972-883-2829





Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.