normalize(A,"range") function throwing error of "Too many input arguments." in Matlab 2023a.
Show older comments
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
Please run this command and show us the complete output:
which normalize -all
Asif Arain
on 26 Feb 2024
Stephen23
on 26 Feb 2024
Remove the GEOM2D toolbox from the search path.
Aquatris
on 26 Feb 2024
Essentially you are not using the matlab built-in normalize function since you have geom2d toolbox with a normalize script overwriting the builtin one.
Asif Arain
on 27 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.
Answers (1)
Alexander
on 26 Feb 2024
0 votes
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
Stephen23
on 26 Feb 2024
That is risky:
- GEOMED then calls the wrong NORMALIZE
- one badly-named function hints that there might be more...
Asif Arain
on 27 Feb 2024
Edited: Asif Arain
on 27 Feb 2024
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).
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!