Almost.
Octave understands Mathlab language, but there are some statements not yet supported. Anyway, many Mathlab can be used with Octave without any modification. I used to use Mathlab in collage and I found that I could run most of my scripts in Octave. I needed to modify some scripts that have some plotting commands tho.
The graph above was from this script. I got this script when I was learning it a few years ago so I don't remember where I got it from.
>> [x,y] = meshgrid([-12 : 1/2 : +12]);
>> z = sin(sqrt(x .* x + y .* y)) ./ sqrt(x .* x + y .* y);
>> mesh(x,y,z);
No comments:
Post a Comment