How to use disp in matlab?
조회 수: 16 (최근 30일)
이전 댓글 표시
disp('Solutions for f''(x) = 0:');
Dear friend, I have some trouble with disp. why in the above code, the result is Solutions for f'(x) = 0:
how to display f''(x) using disp
Your help would be highly appreciated!
댓글 수: 0
채택된 답변
Walter Roberson
2023년 9월 11일
disp('Solutions for f''''(x) = 0:');
disp("Solutions for f''(x) = 0:");
That is, inside a ' ' (apostrophe) delimited character vector, a single ' ends the character vector and '' (two ' in a row) results in a single ' in the character vector.
Inside a " " (double-quote) delimited character vector, each ' is literal, just a plain character -- but a single " (double-quote) ends the string and "" (two double-quote in a row) results a single " in the string.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Argument Definitions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!