how I can use fprintf for syms
조회 수: 9 (최근 30일)
이전 댓글 표시
hello I want to print syms with scinstific model. can you help me?
example:
Function a(n)
digits(400)
syms t
t=n;
z=vpa(t/3);
fprintf('%3,3e',z);
end
with extra thanks
zohdi
댓글 수: 1
답변 (1개)
Hassan F
2013년 1월 8일
편집: Hassan F
2013년 1월 8일
have you tried the following?
fprintf('%3.3e',sscanf(char(z),'%e'))
참고 항목
카테고리
Help Center 및 File Exchange에서 Assumptions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!