[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Plotting Question
From: |
Thomas D. Dean |
Subject: |
Plotting Question |
Date: |
Sun, 21 Jun 2015 16:08:46 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 |
Linux X11.
I have a script that works when sourced from within octave, but, when I
start from the command line, I get no plot.
> cat dotest.m
1;
A = load ( 'test.dat' );
ax =plotyy(A(:,1)/1000, 20*log10(A(:,3)./A(:,2)), A(:,1)/1000, A(:,4));
title ( 'Insertion Loss and Phase' );
xlabel ( 'Frequency kHz' );
ylabel ( ax(1), 'Insertion Loss db' );
ylabel ( ax(2), 'Phase, debrees' );
ylabel ( ax(2), 'Phase, debrees' );
legend ( 'Insertion Loss','Phase' );
grid on;
ans = input ( 'Press return to close plot and exit' );
close all;
> /usr/local/bin/octave dotest.m
Press return to close plot and exit
No plot displayed.
I believe this has to do with the shell, bash, forking and then exec'ing
octave. Correct?
Tom Dean
- Plotting Question,
Thomas D. Dean <=