C++ API to Octave

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

C++ API to Octave

Jeppe Sigbrandt
Hi World,

Is there any reason why including a plot
in executable shouldn't work ?

Regards,
jay

--------

#! /usr/local/bin/octave -qf
# a sample Octave program
printf ("Octave wants to say: Hello, world!\n");
load /Your_Path_Here2/y.mat
plot(y)

Reply | Threaded
Open this post in threaded view
|

Re: C++ API to Octave

Ted.Harding
( Re Message From: Jeppe Sigbrandt )

>
> Hi World,
>
> Is there any reason why including a plot
> in executable shouldn't work ?
>
> Regards,
> jay
>
> --------
>
> #! /usr/local/bin/octave -qf
> # a sample Octave program
> printf ("Octave wants to say: Hello, world!\n");
> load /Your_Path_Here2/y.mat
> plot(y)

It /does/ plot -- for about 0.01 sec; if you blink you'll miss it.
Try following the "plot(y)" with

        for i=1:100000, x=1; endfor

and you'll have time to enjoy it.

Ted.                                    ([hidden email])