How do i print '^' in sprintf?
조회 수: 1 (최근 30일)
이전 댓글 표시
- Just say
- a = 2
- b = 3
- and i wanted to print " a*x^b " using sprintf
- why is it when in use sprintf('%.2f*x^%.2f',a,b)
- or even sprintf(%.2f*x%s%.2f',a,'^',b)
- matlab prints 2.00*x3.00
- How would I print " 2.00*x^3.00 " ?
댓글 수: 0
답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!