reverse-shooting

Matlab scripts for reverse shooting
Log | Files | Refs | README

cshownon.m (467B)


      1 % CSHOWnon.m   []=cshow(text,data,fmt)
      2 %	Displays text and data...
      3 %            *without* the carriage return at the end (in case you want to
      4 %	add more stuff).
      5 
      6 function []=cshownon(text,data,fmt);
      7 
      8 if exist('fmt')==0; fmt='%12.8f'; end;
      9 [n k] = size(data);
     10 for i=1:n;
     11 %	if text~=' '; fprintf(1,text(i,:)); end;
     12 %	if any(text~=' '); fprintf(1,text(i,:)); end;
     13 	if text(1,1)~=' '; fprintf(1,text(i,:)); end;
     14 	fprintf(1,fmt,data(i,:));
     15 %	fprintf(1,'\n');
     16 end % i loop