photo

Tianyi Yu


2019년부터 활동

Followers: 0   Following: 0

통계

MATLAB Answers

1 질문
1 답변

순위
161,673
of 301,127

평판
0

참여
1 질문
1 답변

답변 채택
100.0%

획득한 표
0

순위
 of 21,175

평판
N/A

평균 평점
0.00

참여
0 파일

다운로드 수
0

ALL TIME 다운로드 수
0

순위

of 172,925

참여
0 문제
0 답안

점수
0

배지 수
0

참여
0 게시물

참여
0 공개 채널

평균 평점

참여
0 하이라이트

평균 좋아요 수

Feeds

보기 기준

질문


How to reuse the same format
For example, this code has nine "%7.0f" and one "%5.0f". Is there any way I can simplify this code, like "repmat('%7.0f' , 9)" ,...

대략 6년 전 | 답변 수: 2 | 0

2

답변

답변 있음
How to reuse the same format
OK i think i solved this problem already: fmt = ['# defaults-> %5.0f',repmat('%7.0f',1,8),'%7.0f\n',]; fprintf(fmt,header);

대략 6년 전 | 0

| 수락됨