Closed bemoregt closed 5 years ago
HI, @CptWesley , @triforcely
?? --;
https://octave.sourceforge.io/octave/function/peaks.html
If you call it without return argument, it will display a window with graphics but you want to get the matrix with values.
Try:
double[][] aa= oct1
.Execute("x = peaks(64)")
.AsMatrix();
Please note, that there is no ";" character at the end of the command.
Hi, @triforcely @CptWesley
using Octave.NET; using(var oct1= new OctaveContext()){ oct1.Execute("pkg load image"); oct1.Execute("x=peaks(64)"); oct1.Execute("save('aa.txt', x)");}
No Results
69ms
Win32Exception: No such file or directory
at bool System.Diagnostics.Process.StartCore (ProcessStartInfo startInfo)
at bool System.Diagnostics.Process.Start ()
at Octave.NET.OctaveProcess..ctor (string octaveCliPath)
at OctaveProcess Octave.NET.OctaveContext.<>c__DisplayClass2_0.<.ctor>b__0 ()
at T Octave.NET.Core.ObjectPooling.ObjectPool
You don't have octave in your PATH or
OctaveContext.OctaveSettings.OctaveCliPath
is incorrect.
HI, @triforcely @CptWesley
Then, How can I set the correct path to my MacOSX?
I've already installed octave (mac version).
Thanks. in advance~
This question is not related to the Octave.NET, please refer to MacOSX documentation.
Hi, @CptWesley , @triforcely
How Can I save my octave variable?
using Octave.NET;
double[][] bb; using(var oct1= new OctaveContext()) { oct1.Execute("pkg load image;");
}
Thanks ~!
from @bemoregt