vector display
14 次查看(过去 30 天)
显示 更早的评论
when i use disp(im), where im is image vector after PCA, I get output as: 1.0e+003 *
1.234 -0.964 ....
what is 1.0e+003 * in the beginning??
0 个评论
采纳的回答
更多回答(1 个)
Jan
2011-5-20
DISP tries to be smart and occupy as small space in the command window as possible. If all the data have a magnitude far appart from 1.0, DISP rescales the values and shows the scaling factor on top of the values. Possible solutions:
format long g
or
fprintf([repmat('%g ', 1, size(im, 2)), '\n'], transpose(im));
0 个评论
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!