이 제출물을 팔로우합니다
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다
%function fmt = tablefmt(Wd,number)
% jdc 12-Oct-02
%PURPOSE:
% Construct a format for printing an arbitrary number with specified
% field width and precision, using e.g. fprintf
%INPUT:
% Wd - field width and precision (example: 12.3)
% Note: field width 'W' must be >= 7 for
% exponential formats to print correctly
% number - numerical value for which the format is to be constructed
%OUTPUT:
% f or e format specification as string variable
%EXAMPLE:
% number = 0.123456789012345678; W = 12; d = 3;
%for i = -3:15,
% val=(-1)^i*number*10^i;
% fmt=tablefmt(12.3,val);
% fprintf([ fmt '\n'],val);
%end
%-1.2346e-004
% 1.2346e-003
%-1.2346e-002
% 0.123
% -1.235
% 12.346
% -123.457
% 1234.568
% -12345.679
% 123456.789
%-1234567.890
% 12345678.90
%-123456789.0
% 1234567890
%-12345678901
% 1.2346e+011
%-1.2346e+012
% 1.2346e+013
%-1.2346e+014
인용 양식
J. Cogdell (2026). tablefmt (https://kr.mathworks.com/matlabcentral/fileexchange/2534-tablefmt), MATLAB Central File Exchange. 검색 날짜: .
| 버전 | 퍼블리시됨 | 릴리스 정보 | Action |
|---|---|---|---|
| 1.0.0.0 |
