[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How do I suppress output of main program?
From: |
Henry F. Mollet |
Subject: |
How do I suppress output of main program? |
Date: |
Wed, 25 Feb 2004 14:07:09 -0800 |
User-agent: |
Microsoft-Entourage/10.1.1.2418 |
[~/cando/Easterlingetal2000] tcsh:14> ls
intlam.m mkpp.m
csape.m kernmat.m monkdata.txt
csapi.m lambda.m myreg2.m
datlam.m lookup.m myreg3.m
eig2.m makepic.m nmsmax.m
fecund.m manual.doc normpdf.m
fitdat.m manual.pdf octave-core
fitspl.m manual.ps ppval.m
fmins.m manual2.txt prctile.m
fnval.m matlam.m sens.m
fnval.mAsIsForMatlabUse matlambackup.m testdata.txt
gauleg.m maxlik.m varspl.m
grow.m mkkern.m wvprod.m
% Eight m-files came from octave-forge, there was a problem with the
spelling of "gauleg.m" and matlam.m required a slight modification because
%error: number of columns must match (4 != 1). Thanks to P. Kienzle I got
past the fnval.m hurdle.
%The main "program" is lambda.m and it now runs to completion using Octave.
The plots seem to produce the correct results but I still need to work on
the graphs using commands that I understand. Surprisingly, Octave/Gnuplot
could handle most of the commands that were used to produce 2 plots with 4
subplots each (in the program for use with Matlab).
%There is however one minor problem I have not yet resolved and I bet there
is an easy answer. I'm now getting results that are "printed" to the screen
(because the program runs to completion), including a 150x150 matrix and a
150x1 vector. I don't know how to get rid of this because I don't where
the corresponding statements are. They are certainly not *at the end* of the
main program and that's where these variables (grow-rates, *kmat*, and
*mshpts*) are calculated. Or perhaps the question is how do I suppress some
or all of the output of the main program:
*** local user variables:
prot type rows cols name
==== ==== ==== ==== ====
rwd matrix 1 3 grow_rates
rwd matrix 150 150 kmat
rwd matrix 150 1 mshpts
rwd matrix 200 8 testdata
Thanks, Henry
function [grow_rates, kmat, mshpts] =
lambda(dat,numclass,fit_method,reg_order,makepics,mshsize)
Cut except last few original statements
% - - - - Solve the integral equation for lambda - - - - - -
[kmat, mshpts] = kernmat(mshsize, mshmin, mshmax);
[ilam, lammeth] = intlam(kmat);
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
% - - - - Calculate lambda from the data #t+1 / # t - - - - -
dlam = datlam(dat);
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
% - - - - Fit a matrix and calculate lambda - - - - - - - - -
mlam = matlam(dat,numclass);
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
disp ("In lambda.m after matlam function") % my addition
grow_rates = [ilam, dlam, mlam]; % last statement in original program
disp (grow_rates) % my addition
disp ("In lambda.m after last statement i.e grow_rates =" ) % my addition
disp ("Prints grow_rates and kmat and mshpts after this !??" ) % my addition
disp ("How do I suppress it, at least kmat and mshpts?") % my addition
disp ("Where are the statements for this?") % my addition
octave:8> [grow_rates, kmat,mshpts]=lambda(testdata, [],[],[],[],[])
In lambda.m after matlam function
1.2769 1.3000 1.2856 % Ok, my disp statement
In lambda.m after last statement i.e grow_rates =
Prints grow_rates and kmat and mshpts after this !??
How do I suppress it, at least kmat and mshpts?
grow_rates = %
1.2769 1.3000 1.2856
kmat =
Columns 1 through 5:
2.5972e-07 6.0446e-07 9.4945e-07 1.2941e-06 1.6381e-06
Cut
Columns 146 through 150:
1.4379e-134 7.3672e-135 4.0298e-135 2.5655e-135 1.1023e-135
mshpts =
-1.960155
Cut
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- How do I suppress output of main program?,
Henry F. Mollet <=
- Re: How do I suppress output of main program?, Paul Kienzle, 2004/02/25
- Re: How do I suppress output of main program?, Henry F. Mollet, 2004/02/25
- [Octave] suggestion?, Hugo Coolens, 2004/02/26
- Re: [Octave] suggestion?, Shai Ayal, 2004/02/26
- Re: [Octave] suggestion?, Hugo Coolens, 2004/02/26
- Re: [Octave] suggestion?, Shai Ayal, 2004/02/26
- Re: [Octave] suggestion?, robert Macy, 2004/02/26
- Re: [Octave] suggestion?, John W. Eaton, 2004/02/26
- Re: [Octave] suggestion?, Dirk Eddelbuettel, 2004/02/26
- Re: [Octave] suggestion?, Mike Miller, 2004/02/26