Thursday, October 27, 2005

Matlab: print to screen (display)

fprintf(1, '%f', Xw); or just
fprintf('hello: %f', Xw);

print to screen, use '1' instead of 'fid', usually: fid = fopen();

another display:
tic; fft(rand(500)); disp(['it takes' num2str(toc) 'second'])

No comments:

Post a Comment