why does matlab tell me that the "chop" command doesn't exist?

조회 수: 18 (최근 30일)
Bodo Christian
Bodo Christian 2020년 3월 28일
댓글: Bodo Christian 2020년 3월 29일
why does matlab tell me that the chop command doesn't exist?

채택된 답변

per isakson
per isakson 2020년 3월 28일
편집: per isakson 2020년 3월 28일
Make sure that you have the Control System Toolbox. chop() is a function in that toolbox.
>> product_info = ver('control')
product_info =
struct with fields:
Name: 'Control System Toolbox'
Version: '10.5'
Release: '(R2018b)'
Date: '24-May-2018'
>>
Maybe chop() is removed. It was obsolete in R2018b.
>> which chop -all
C:\Program Files\MATLAB\R2018b\toolbox\control\ctrlobsolete\chop.m
  댓글 수: 4
Walter Roberson
Walter Roberson 2020년 3월 29일
https://www.mathworks.com/matlabcentral/answers/101885-how-do-i-install-additional-toolboxes-into-an-existing-installation-of-matlab
Note that you will need to be licensed for the toolbox.
You should also have a look at the round() call and consider what behavior you need. For example if you have chop(1.2468,2) do you want 1.25 or do you want (the closest representable number to) 1.24?
Bodo Christian
Bodo Christian 2020년 3월 29일
thanks I managed to install the Tool. I have an academic license because I am studying at the Politecnico of Turin. The command was for use in an exercise. I'm at the first approach with matlab thanks to everyone for the answers.

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

추가 답변 (2개)

Walter Roberson
Walter Roberson 2020년 3월 28일
MATLAB does not contain any chop() function, unless it is a method for some object that I cannot think of at the moment.

Steven Lord
Steven Lord 2020년 3월 28일
Cleve's original version of MATLAB had a chop command as you can see from the user's guide, but I'm not sure there is such a command in any MathWorks product right now. Did you perhaps want to use Professor Nick Higham's File Exchange submission? If so you'll need to install that add-on -- the easiest way to do that is to use Add-On Explorer.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by