You are now following this question
- You will see updates in your followed content feed.
- You may receive emails, depending on your communication preferences.
Too Many I/Ps
4 views (last 30 days)
Show older comments
hello,
My code is -
net=googlenet;
analyzeNetwork(net)
this is returning an error saying
too many input arguments.
And the same error is displayed when I am creating my custom network and using
net=trainNetwork(datastore,layers,options);
Please Help.
Thank You
22 Comments
Ameer Hamza
on 21 Oct 2020
Can you show the output of
which trainNetwork
Ameer Hamza
on 21 Oct 2020
Edited: Ameer Hamza
on 22 Oct 2020
What about
which analyzeNetwork
can you paste complete error message? Which MATLAB release are you using?
Ameer Hamza
on 21 Oct 2020
It seems that the file uigridlayout.m has somehow got edited. Can you run the command
edit uigridlayout.m
and check if first two lines looks like this
function gridComponent = uigridlayout(varargin)
%UIGRIDLAYOUT Create a grid layout container
Ameer Hamza
on 22 Oct 2020
First run the following line in command window
dbstop if error
and then re-run code. When the error occurs, the MATLAB execution will halt inside a file, can you tell what is the name of that file?
Ameer Hamza
on 22 Oct 2020
I suggest you reinstall MATLAB completely. Deletes the current files and then reinstall.
Walter Roberson
on 22 Oct 2020
dbstop if caught error
and run and you should be able to see the problem line. When it stops check
which -all uigridlayout
as you might not be getting the public version
Walter Roberson
on 23 Oct 2020
Okay, we are getting somewhere. Show
which -all replace
I suspect you will find that you have your own replace.m or a third-party toolbox that has replace.m
Ameer Hamza
on 23 Oct 2020
Ah!! This must be it. I didn't realize there is also a
dbstop if caught error
Ameer Hamza
on 23 Oct 2020
Exactly as suspected!!! You have a file replace.m at
E:\REN\Matlab files\replace.m
which is shadowing the built-in replace function. Change the name of your file to something else.
REN Jain
on 24 Oct 2020
Oooh Understood. I have created a function name replace, and there is a inbuilt replace fn that exsist and due to that they are overlapping or shadowing something.
Ya Its Working Now.
Million time THANKSsssssss.
Thank you, thank you , thank you sooo much......
Answers (0)
See Also
Categories
Find more on Install Products 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!An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom(English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)