help-octave
[Top][All Lists]
Advanced

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

Generate plots in bash script


From: epetting
Subject: Generate plots in bash script
Date: Thu, 29 Nov 2012 15:52:00 -0800 (PST)

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.


reply via email to

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