From help-octave-request at bevo dot che dot wisc dot edu Mon Jan 14 05:00:43 2002 Subject: supressing eval output From: Juraj Krempasky To: help-octave at bevo dot che dot wisc dot edu Date: Mon, 14 Jan 2002 11:59:43 +0100 --------------InterScan_NT_MIME_Boundary Content-Type: multipart/alternative; boundary="------------4C0C228A4033C174C013654D" --------------4C0C228A4033C174C013654D Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi there, I'm loading various matrices with for i=1 : 100 load (eval(sprintf("\"/mat_%d\"",i))); mstr=eval(sprintf("\"mat_%d\"",i)); m=eval(mstr); ... so as to keep the m behavior dynamic, I do it through eval(mstr) (peharps there is a better solution). But then the assignment m=eval(mstr) outputs the content of the m even if I have the ";". Any Idea how to supress the eval() output? thanks -- _____ / / juraj dot krempasky at psi dot ch _/_/_/ _/ _/_/_/ /____ Computing & Controls _/ _/ _/ / Paul Scherrer Institute _/_/ _/ _/_/ ____/ CH-5232 Villigen-PSI _/_/ _/ / Tel: ++41 56 310 5131 _/_/_/_/_/_/_/__/_/_/___/ Fax: ++41 56 310 3151 --------------4C0C228A4033C174C013654D Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Hi there,

I'm loading various matrices with

for i=1 : 100
 load (eval(sprintf("\"/mat_%d\"",i)));
 mstr=eval(sprintf("\"mat_%d\"",i));
 m=eval(mstr);
...

so as to keep the m behavior dynamic, I do it through eval(mstr)  (peharps there is a better solution). But then the assignment    m=eval(mstr) outputs the content of the m even if I have the ";". Any Idea how to supress the eval() output?

thanks

-- 

                         _____
                        /    /        juraj dot krempasky at psi dot ch
     _/_/_/  _/   _/_/_/    /____    Computing & Controls
    _/      _/   _/             /   Paul Scherrer Institute 
     _/_/  _/     _/_/     ____/  CH-5232 Villigen-PSI
        _/_/         _/   /      Tel: ++41 56 310 5131
 _/_/_/_/_/_/_/__/_/_/___/      Fax: ++41 56 310 3151
  --------------4C0C228A4033C174C013654D-- --------------InterScan_NT_MIME_Boundary-- ------------------------------------------------------------- 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 -------------------------------------------------------------