Clear Filters
Clear Filters

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

6 views (last 30 days)
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 Comments
Asif Arain
Asif Arain on 27 Feb 2024
Thanks @Stephen23 and @Aquatris. The built-in normalize was confused with geom2d's normalize. I think its better to rename geom2d normalize.
Stephen23
Stephen23 on 27 Feb 2024
Edited: Stephen23 on 28 Feb 2024
" 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.

Sign in to comment.

Answers (1)

Alexander
Alexander on 26 Feb 2024
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 Comments
Asif Arain
Asif Arain on 27 Feb 2024
Edited: Asif Arain on 27 Feb 2024
Is there a way MATLAB thows a warning when more than one functions exist with the same name in the path directories?
Stephen23
Stephen23 on 27 Feb 2024
"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).

Sign in to comment.

Categories

Find more on Search Path in Help Center and File Exchange

Tags

Products


Release

R2023a

Community Treasure Hunt

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

Start Hunting!