Concretely, how tranlate the following MATLAB program to SAGE:
I don't know of a way to do this with the current interact implementation in Sage. You can do it with the singlecell server (which just executes a single Sage command, but you can embed it in any webpage), and hopefully soon the new interact implementation in the singlecell server will make its way back into Sage.
For example, see this example on aleph.sagemath.org:
Of course, if you just want to get input from the user in the notebook, you can just ask them to define the variables.
Asked: Jan 17 '12
Seen: 269 times
Last updated: May 24 '12
powered by ASKBOT version 0.7.22
Copyright Sage, 2010. Some rights reserved under creative commons license.