help-octave
[Top][All Lists]
Advanced

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

Re: Generate plots in bash script


From: Sergei Steshenko
Subject: Re: Generate plots in bash script
Date: Thu, 29 Nov 2012 16:06:49 -0800 (PST)




----- Original Message -----
> From: epetting <address@hidden>
> To: address@hidden
> Cc: 
> Sent: Friday, November 30, 2012 1:52 AM
> Subject: Generate plots in bash script
> 
> Hello!
> 
> I'm attempting to be more concise and simply run an Octave file which
> generates plots within a bash script (also, the Octave file does not require
> bash parameters to be used). 
> 
> The octave file runs fine in octave, and looks like the following (called
> Plot1.m):
> ~~~~~~~~~~~
> clear all; 
> close all;
> a=dlmread('file1');aT=a(:,1);aV=a(:,2);
> 
> figure 
> plot(aT,aV);
> 
> print -dpdf Attempt.pdf
> ~~~~~~~~~~~
> 
> 
> The bash scripts I've made (none work):
> ~~~~~~
> #!/bin/bash
> cd /Users/me
> octave -q << eof
> Plot1
> eof
> ~~~~~~
> 
> and 
> 
> ~~~~~
> #!/bin/bash
> cd /Users/me
> octave --silent --eval 'Plot1'
> ~~~~~
> 
> and 
> 
> ~~~~~
> #!/bin/bash
> cd /Users/me
> octave -qf Users/me/Plot1.m
> ~~~~~
> 
> 
> 
> Needless to say, not sure how to implement Plot1.m in a bash script. Help?
> 
> 
> 
> --
> View this message in context: 
> http://octave.1599824.n4.nabble.com/Generate-plots-in-bash-script-tp4647403.html
> Sent from the Octave - General mailing list archive at Nabble.com.
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave


I think you are asking a wrong question.

The necessary right question is: how do I run an octave script 
non-interactively ?


Try 'octave --help' for answers.

Regards,
  Sergei.




>


reply via email to

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