[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How do get a return value from a subroutine into the workspace?
From: |
Henry F. Mollet |
Subject: |
How do get a return value from a subroutine into the workspace? |
Date: |
Wed, 05 May 2004 19:38:57 -0700 |
User-agent: |
Microsoft-Entourage/10.1.1.2418 |
I'm running a main program (function) with a call to a subprogram (another
function) that I have modified (removing ";" after the call) so that the
return value ,a matrix called "A", will get printed to the screen. How do I
get "A" into the workspace? I have to copy/paste "A" into an editor, save it
as "A", then load "A" into the workspace but there must be an easier/better
way to accomplish this? The return values of the main program are in the
workspace after running the program and they are also printed to the screen
if I remove the ";" after the call at the octave prompt.
Henry
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- How do get a return value from a subroutine into the workspace?,
Henry F. Mollet <=