d***@gmail.com
2009-01-29 14:45:08 UTC
Hi,
I am a complete beginner trying (struggling!) to deal with Octave on
Mac OS X. I have some experience in C, so explanations in comparison
to C if possible, would be helpful.
How to do you start writing a program (are these what many help
documents are calling 'executable programs'?) in Octave? I can fiddle
around with various functions and things but I would like to combine
them into a program. Perhaps if you could give me an example or a
sample program code I would be able to understand better. I can't seem
to find one even though I've been searching for a week. Then how would
you save the program and then load it? When I wrote in C, if you
loaded a program it would display the entire code for the program -
surely I should be able to achieve the same with Octave...?
Also, when you use the save function, e.g. save a, where a is a
variable, it just saves it under my Home folder. How can I define the
path so it saves it elsewhere, a folder inside my Documents folder?
Thank you so much! I'm so frustrated because even though I can create
and use functions I have no idea how to use them by writing them into
a program. Does each function have to saved separately as an .m file?
Again, thank you all, I really look forward to any words of help and
advice!
Cheers,
Danbee
I am a complete beginner trying (struggling!) to deal with Octave on
Mac OS X. I have some experience in C, so explanations in comparison
to C if possible, would be helpful.
How to do you start writing a program (are these what many help
documents are calling 'executable programs'?) in Octave? I can fiddle
around with various functions and things but I would like to combine
them into a program. Perhaps if you could give me an example or a
sample program code I would be able to understand better. I can't seem
to find one even though I've been searching for a week. Then how would
you save the program and then load it? When I wrote in C, if you
loaded a program it would display the entire code for the program -
surely I should be able to achieve the same with Octave...?
Also, when you use the save function, e.g. save a, where a is a
variable, it just saves it under my Home folder. How can I define the
path so it saves it elsewhere, a folder inside my Documents folder?
Thank you so much! I'm so frustrated because even though I can create
and use functions I have no idea how to use them by writing them into
a program. Does each function have to saved separately as an .m file?
Again, thank you all, I really look forward to any words of help and
advice!
Cheers,
Danbee