normalize(A,"range") function throwing error of "Too many input arguments." in Matlab 2023a.

조회 수: 3 (최근 30일)
I am using Matlab 2023a and trying to use normalize function as given in the document
A = 1:5;
Ns = normalize(A,"scale")
It gives me the following error.
Too many input arguments.
  댓글 수: 6
Asif Arain
Asif Arain 2024년 2월 27일
Thanks @Stephen23 and @Aquatris. The built-in normalize was confused with geom2d's normalize. I think its better to rename geom2d normalize.
Stephen23
Stephen23 2024년 2월 27일
편집: Stephen23 2024년 2월 28일
" I think its better to rename geom2d normalize."
You will have to also check and possibly rename every NORMALIZE function call within that badly-written toolbox... and probably also the names of every other function that are defined by that toolbox.
Simpler to remove the badly-written toolbox from the search path.

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

답변 (1개)

Alexander
Alexander 2024년 2월 26일
Move "Q:\matlab-toolbox\geom2d" with pathtool to the bottom and save. If it is in your startup file apply -end like this:
addpath Q:\matlab-toolbox\geom2d -end;
  댓글 수: 3
Asif Arain
Asif Arain 2024년 2월 27일
편집: Asif Arain 2024년 2월 27일
Is there a way MATLAB thows a warning when more than one functions exist with the same name in the path directories?
Stephen23
Stephen23 2024년 2월 27일
"Is there a way MATLAB thows a warning when more than one functions exist with the same name in the path directories?"
No. Because this is completely normal and expected (e.g. overloaded functions).

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

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by