octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running a script file inside c++ code


From: sumeet kumar
Subject: Re: Running a script file inside c++ code
Date: Tue, 16 Aug 2016 08:37:29 -0700


eval_string() cannot evaluate if the string contains any outside function.
I use only eval string to get the value of "ans" variable only.


Sumeet

On Tue, Aug 16, 2016 at 8:00 AM, Mike Miller <address@hidden> wrote:
On Mon, Aug 15, 2016 at 23:03:49 -0700, sumeet kumar wrote:
> This, all works well. The only problem is that I need to generate a
> "script" file each time I do any of these computations. Because the
> *Source_File*() function requires a file_name as parameter.
>
> Now, what I want is the following.
>
>
>    1. I do not want to generate any file and then pass on the octave
>    parser. This is very slow and takes lot of time.
>    2. I want a function that do not need to generate any external file. i.e
>    I would like a function such as
>
>
>    - FUNCTION(string) -> directly giving me result
>    - Also, in the string I should be able to use any function of octave or
>    from any external file, which I am currently able to use through my
>    approach as shown above.

Your code shows that you are using both source_file and eval_string.
Have you tried using eval_string alone? Your description looks exactly
like what eval_string is.

--
mike



--
         
Sumeet Kumar Sinha
Graduate Student
Phone: (+1) 5306018271

reply via email to

[Prev in Thread] Current Thread [Next in Thread]