필터 지우기
필터 지우기

Sym

조회 수: 2 (최근 30일)
john
john 2012년 3월 1일
Hi,
how can I change format of sym number? For example:
a=sym(2.34353453465464);
b=sym(4.6546455789879324352);
format short
c=a*b
Format short doesn't work.
Thanks
  댓글 수: 1
Sean de Wolski
Sean de Wolski 2012년 3월 1일
also note, b is converted to double before sym and some precision is lost

댓글을 달려면 로그인하십시오.

채택된 답변

Andrew Newell
Andrew Newell 2012년 3월 1일
Use vpa, e.g.,
c = vpa(a*b,4)
  댓글 수: 11
john
john 2012년 3월 6일
ok,
thank you again
Andrew Newell
Andrew Newell 2012년 3월 6일
I was using the Maple Toolbox.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by