Home > Matlab Error > Matlab Error Model Parameter Must Be A String

Matlab Error Model Parameter Must Be A String

United States Patents Trademarks Privacy Policy Preventing Piracy Terms of Use © 1994-2016 The MathWorks, Inc. Mark Mark (view profile) 4 questions 0 answers 0 accepted answers Reputation: 0 on 15 Aug 2012 Direct link to this comment: https://www.mathworks.com/matlabcentral/answers/46034#comment_94686 doesn't work:K>> who('-file','c:\\nn\\net') Your variables are: net and Same results. Learn more MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi Learn more Discover what MATLAB® can do for your career. his comment is here

What are tags? Same results. Related Content Join the 15-year community celebration. I realized that only using 'global' my function would get the MPCobj, but not.

So, I repeat my question/comment: >> What do you mean by "put a sim command in trainb function"? Got questions?Get answers. How to concatenate three files (and skip the first line of one file) an send it as inputs to my program? United States Patents Trademarks Privacy Policy Preventing Piracy Terms of Use © 1994-2016 The MathWorks, Inc.

I would like to do a nnet sim for each epoch. Apply Today MATLAB Academy New to MATLAB? Train is then called which then calls trainb. So, I've created the MPCobject and run the simulation.

When net is checked in trainb (in debug) it > yields a report of the network (net) created and is correctly structured. > However, if I insert a sim call within When I've created a function to optmize my parameteres, with the 'sim' function inside, I've got the "'model' parameter must be a string" problem inside the function created. Does flooring the throttle while traveling at lower speeds increase fuel consumption? https://www.mathworks.com/matlabcentral/answers/46034-neural-network-error-model-parameter-must-be-a-string-when-calling-sim-net-data HTH Yi Subject: 'model' parameter must be a string - error From: Gunnar Gunnar (view profile) 1 post Date: 23 Aug, 2010 07:32:04 Message: 3 of 8 Reply to this message

If I stop the program just before the sim call with debug and check net, I get the same, correctly structured net. I was searching a long time for this parameter on the mathworks page until I found it here. –Reza Sep 23 at 8:08 add a comment| up vote 0 down vote Apply Today MATLAB Academy New to MATLAB? Same results.

Model update failed. you can try this out Follow-Ups: Re: 'model' parameter must be a string - error From: Steven_Lord References: 'model' parameter must be a string - error From: Gunnar Re: 'model' parameter must be a string - Apply Today MATLAB Academy On-demand access to MATLAB training. You can think of your watch list as threads that you have bookmarked.

Thus I put a sim(net ,VV) command in trainb function. > > I get the 'model' parameter must be a string error. http://threadspodcast.com/matlab-error/matlab-error-messages.html I checked it with get_param('modelName','ObjectParameters') Some important remarks: Remark #1: When using sim, Simulink automatically switches the workspace to the model's, so one might get errors if sim is executed within asked 4 years ago viewed 1587 times active 2 years ago Linked 2 MATLAB/Simulink - programatically supply multiple external inputs Related 5How can I adjust the display of IO ports on Since that's not what's happening, you should show what exactly you've done and how you created the inputs to your SIM call. -- Steve Lord [email protected] comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ To

Actually, the error is related to 'model' parameter, that is requested to be a string. To access the network for simulation you must write: importvariablename.savedvariablename . Join them; it only takes a minute: Sign up Simulink - programatically specifying external inputs up vote 1 down vote favorite I would like to adjust some Simulink parameters programatically, namely weblink However, if I insert a sim call within the epoch do loop in trainb, I get the model parameter must be a string error.

Why does the find command blow up in /run/? Based on your location, we recommend that you select: . sim(net,XYZ) works fine in the main (calling) code.

data1 = [9,1]; data1(1) = 75; data1(2) = 75; data1(3) = 0.06; data1(4) = 0; data1(5) = 1; data1(6) = 0; data1(7) = 1; data1(8) = 0; data1(9) = 8; data1

You can also select a location from the following list: Americas Canada (English) United States (English) Europe Belgium (English) Denmark (English) Deutschland (Deutsch) España (Español) Finland (English) France (Français) Ireland (English) Stepping ahead one line to the sim call then gives the > error. You probably shouldn't modify the TRAINB function at all. >> > I get the 'model' parameter must be a string error. matlab simulink share|improve this question asked Dec 21 '11 at 22:11 Dang Khoa 2,84552863 add a comment| 3 Answers 3 active oldest votes up vote 3 down vote accepted The ExternalInput

But it did not work for me!! Opportunities for recent engineering grads. Since that's not what's happening, > you should show what exactly you've done and how you created the inputs to > your SIM call. > > -- > Steve Lord > check over here Learn more MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi Learn more Discover what MATLAB® can do for your career.

Thread To add a thread to your watch list, go to the thread page and click the "Add this thread to my watch list" link at the top of the page. I'm quite confused as to how to specify my inputs and states. You can also select a location from the following list: Americas Canada (English) United States (English) Europe Belgium (English) Denmark (English) Deutschland (Deutsch) España (Español) Finland (English) France (Français) Ireland (English) The command should be: sim('mySim','LoadExternalInput', 'on', 'ExternalInput', [myTimeVar, myInputVar]); I believe the parameter 'LoadExternalInput' is not necessary, but in any case, it is 'LoadExternalInput' rather than 'LoadExternalInputs'.

United States Patents Trademarks Privacy Policy Preventing Piracy Terms of Use © 1994-2016 The MathWorks, Inc. Is there a way to force the matlab to call the MPC SIM function? I would like to do a nnet sim for each epoch. Either the net is not being stored as a network object or else it is not being loaded as a network object.

Newsgroups are used to discuss a huge range of topics, make announcements, and trade files. You can also add an author to your watch list by going to a thread that the author has posted to and clicking on the "Add this author to my watch MATLAB Central is hosted by MathWorks. Based on your location, we recommend that you select: .

You will be notified whenever the author makes a post. Without the sim call in trainb the program > > runs without any problem. I would like to do a nnet sim for each epoch. Kaustubha Govind Kaustubha Govind (view profile) 0 questions 2,204 answers 825 accepted answers Reputation: 4,816 on 14 Mar 2011 Direct link to this comment: https://www.mathworks.com/matlabcentral/answers/3065#comment_6481 When the debugger stops in the

Newsgroup content is distributed by servers hosted by various organizations on the Internet. HTH Yi I get 'built-in (C:\Program Files\MATLAB\R2010a Student\toolbox\simulink\simulink\sim)' which is trying to call Simulink sim which needs a character name. sim(net,XYZ) works fine in the main (calling) code. >> >> Try 'which sim' to find the cause of the problem. >> >> HTH >> Yi > > I get 'built-in (C:\Program I didn't realize you were deploying this.

Learn more MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi Learn more Discover what MATLAB® can do for your career.