> gciriani wrote
>> I need to write the output of some calculation in a Google Sheet. I
>> found anything in Octave, and found matlab2sheets
>> <https://www.mathworks.com/matlabcentral/fileexchange/59359-matlab-to-google-sheets-matlab2sheets> >> in the Matlab help forum. I believe the code is described here
>> <https://github.com/abogaard/matlab2gsheets/blob/master/mat2sheets.m> >> . I
>> would like to know if anybody using Octave has successfully used this
>> if there is something similar just for Octave, and where the RunOnce()
>> function described in the links above can be found.
> I haven't run this, but it looks interesting to get something similar into
> the io package. AFAICT there's nothing similar in Octave or Octave-Forge.
> The RunOnce() function doesn't exist in Matlab (just checked with 2019a
> perelease) so you need to find that yourself, maybe somewhere else in
> MatlanCentral ?
RunOnce.m is included in the matlab2sheets download zip file and the
matlab2gsheets GitHub repo. Just download the whole thing from File
Exchange and you'll have it.
The writing to g-sheest works perfectly on matlab. However, I couldn't get
it to run on Octave, mostly because of the java functions being used.
For one, Octave doesn't have the "import" function to import java packages
(as used in mat2sheest.m, line 87 for example). I tried to circumvent this
by trying to call to the individual functions using javaMethods(), but then
I got stuck with what I believe are some matlab-specific java functions,
such as com.mathworks.mlwidgets.html.HTMLPrefs.setProxySettings.
I never got further in java besides creating a hello world script, so I gave
up at this point. a collegue who work a bit with java didn't have any answer
I think the function could be easily transcribed to a octave compatible one,
however this would require some octave-interacting-with-java knowledge. If
this happends to be someone's calling, please let me know :)