vector display

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??

 채택된 답변

Arnaud Miege
Arnaud Miege 2011년 5월 20일

0 개 추천

Have a look at the format function, for example try:
format short g
disp(im)
HTH,
Arnaud

추가 답변 (1개)

Jan
Jan 2011년 5월 20일

1 개 추천

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));

카테고리

도움말 센터File Exchange에서 Dimensionality Reduction and Feature Extraction에 대해 자세히 알아보기

제품

질문:

A
A
2011년 5월 20일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by