Hello, I tried with command round2dp(pi,2) in 2008 Ra matlab it shows the following error:
Undefined function or method 'round2dp' for input arguments of type 'double'.
is it a special function or any other function available to round off to nearest fraction or it can be specified by the user.

 채택된 답변

Oleg Komarov
Oleg Komarov 2012년 5월 17일

1 개 추천

This is a user defined function available on the FEX: round2dp.
To use it, you have to download it and then add to MATLAB the path where you unzip it. In MATLAB File > Set path

추가 답변 (0개)

카테고리

도움말 센터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!

Translated by