Matyas Sustik | 1 Feb 03:21
Picon

printing to console from C/Fortran

Hi All,

What is the proper way of printing to the console from a C/Fortran program
called from Octave?  Is printf ok?

(The reason I am asking is that when I read the R documentation, there it is
mentioned that printf will not reliably print to the console and other
function is
provided. I am releasing the same code for both R and Octave.)

Thanks!
-Matyas
asha g | 1 Feb 07:18
Picon
Favicon

Re: plotting the data given below

Thanks. It works.
 
 



Hi,
As of Octave 3.4.3 the function plot does not accept sparse arguments.
You have to flatten (or what-ever-is-called) your matrix before
plotting:

plot ( X, full(q), 'y*', "markersize", 6)

--
M. Sc. Juan Pablo Carbajal
-----
PhD Student
University of Zürich
http://ailab.ifi.uzh.ch/carbajal/


_______________________________________________
Help-octave mailing list
Help-octave <at> octave.org
https://mailman.cae.wisc.edu/listinfo/help-octave
kerin | 1 Feb 08:46
Favicon

Re: Providing Entire Contents of the File

martin_helm,
I have added the @ before glycODE, and remove x =[]. It works. But *0*
should be changed into *model.ststmet.* then the simulation finally succeed.
Thank you for your help.

Am 31.01.2012 02:15, schrieb kerin: 
> x = lsode(glycODE,0,timeRange) 
Shouldn't that be 

x = lsode(@glycODE,0,timeRange) 

instead and simply remove the  x=[] from your glycODE after you changed 
that. 

--
View this message in context: http://octave.1599824.n4.nabble.com/Re-LSODE-Problem-evaluating-argument-list-element-number-1-tp4340222p4347162.html
Sent from the Octave - General mailing list archive at Nabble.com.
Picon
Picon

Re: pcolor bugs

On 01/31/2012 10:26 PM, Ben Abbott wrote:
> 		graphics_toolkit fltk

This works perfectly!! The 3 "bugs" are gone!! It only looks like octave 
became a bit slower, but it might simply be my own impression...

Considering that the "bugs" are gone, I think it is not necessary to 
make a bug report for pcolor, right?

Thanks a lot for your help, you really made my day!

Cheers, Ismael.
Ben Abbott | 1 Feb 16:14
Picon
Gravatar

Re: pcolor bugs

On Feb 1, 2012, at 8:07 AM, Ismael Núñez-Riboni wrote:

> On 01/31/2012 10:26 PM, Ben Abbott wrote:
> 
>> 		graphics_toolkit fltk
> 
> This works perfectly!! The 3 "bugs" are gone!! It only looks like octave became a bit slower, but it might
simply be my own impression...
> 
> Considering that the "bugs" are gone, I think it is not necessary to make a bug report for pcolor, right?
> 
> Thanks a lot for your help, you really made my day!
> 
> Cheers, Ismael.

One motivation of the fltk backend is too allow octave to have more control. This is a good example where
gnuplot does one thing and Matlab does another.

There is no need for  a bug report unless you can show that gnuplot is able to do what is needed.

Glad this worked for you!

Ben
 
Picon

Is there a way to get input data from network resources and process it from Octave

Hello help-octave <at> octave.org

I have a quick question. I need to know if there already exists a tool
or script that works with octave th..

Here is the thing..I have different endpoint agents that generate a
metric. (Example temperature) I manually grab these metrics through
the network and input them in an octave script.

Im planning to develop a tool in python that collects those metrics
remotely and invoke octave to process them in batch so the process is
automated.

Before i begin i want to know if there exists today a tool that
performs more or less that task?

thanks in advance

Manuel
Gravatar

Re: Is there a way to get input data from network resources and process it from Octave

On 1 February 2012 11:46, Manuel Nazar Anchorena
<manuel <at> nazaranchorena.com.ar> wrote:
> Here is the thing..I have different endpoint agents that generate a
> metric. (Example temperature) I manually grab these metrics through
> the network and input them in an octave script.
>
> Im planning to develop a tool in python that collects those metrics
> remotely and invoke octave to process them in batch so the process is
> automated.
>
> Before i begin i want to know if there exists today a tool that
> performs more or less that task?

Have you looked at the sockets package?

    http://octave.sourceforge.net/sockets/index.html

Suerte,
- Jordi G. H.
Gravatar

Re: Is there a way to get input data from network resources and process it from Octave

On 1 February 2012 11:46, Manuel Nazar Anchorena
<manuel <at> nazaranchorena.com.ar> wrote:
> Im planning to develop a tool in python that collects those metrics
> remotely and invoke octave to process them in batch so the process is
> automated.

Oh, btw, I forgot, you might also be interested in Pytave:

    https://code.launchpad.net/pytave

It can run Octave commands and returns numpy objects.

Depending on what you're doing, numpy alone might also be sufficient.

- Jordi G. H.
Muhali | 1 Feb 19:46
Picon
Favicon

sombrero doesn't show (fltk)

The following lets me see the first, but not the second figure:

octave> set(0, "defaultfigureunits", "normalized") ;
octave> plot(rand(2,2));
octave> sombrero;

Any ideas why?

M.

--
View this message in context: http://octave.1599824.n4.nabble.com/sombrero-doesn-t-show-fltk-tp4348937p4348937.html
Sent from the Octave - General mailing list archive at Nabble.com.
Ben Abbott | 1 Feb 20:12
Picon
Gravatar

Re: sombrero doesn't show (fltk)

On Feb 1, 2012, at 1:46 PM, Muhali wrote:

> The following lets me see the first, but not the second figure:
> 
> octave> set(0, "defaultfigureunits", "normalized") ;
> octave> plot(rand(2,2));
> octave> sombrero;
> 
> Any ideas why?
> 
> M.

I thought this had been fixed.

	graphics_toolkit fltk
	figure (1)

These commands display an empty figure as expected.

	set (1, "units", "normalized")

Changing the units to normalized results in a very small figure in the UL of the screen.

The units conversion for figures is not working correctly. I've filed a bug report.

	https://savannah.gnu.org/bugs/?35430

Ben

Gmane