How to use multiple formats
조회 수: 3 (최근 30일)
이전 댓글 표시
My teacher is asking me to use 8 different formats. I've tried everything I could think and even read the textbook. If anyone could show me how to use multiple formats to get more than one answer that would be great! Thanks
댓글 수: 0
답변 (1개)
Star Strider
2015년 9월 17일
편집: Star Strider
2015년 9월 17일
If you need ideas, see the documentation in fprintf for formatSpec. That has all the available options. The creativity is your responsibility. (You might also need the str2num or num2str functions, depending on the requirements of your assignment.)
참고 항목
카테고리
Help Center 및 File Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!