openExample('signal/LinearChirpExample') is unidentified in version 2015. Help
Ältere Kommentare anzeigen
openExample('signal/LinearChirpExample') is unidentified in version 2015. Help
Shouldnt Matlab automatically 'see' the current version and translate automatically the command to avoid 2 hours of hassle????
Antworten (1)
Walter Roberson
am 29 Okt. 2016
0 Stimmen
With respect to openExample, see https://www.mathworks.com/matlabcentral/answers/276377-why-want-the-code-generation-examples-open#answer_215823
"Shouldnt Matlab automatically 'see' the current version and translate automatically the command to avoid 2 hours of hassle????"
No, it should not do that. That would add an undue layer of complexity and time delay, that every time an unknown function was encountered, MATLAB would have to check some server to determine whether there had ever been a known function of that name and would have to match the data types of the parameters and suggest the rewriting.
For example, in the early hours of this morning, I renamed one of my logical vectors, but missed changing it in one place. My vector was named tf. I quickly discovered the problem because I happen to have the Control System Toolbox installed and it took the inputs and created a Transfer Function object that then crashed the code. But if I did not happen to have Control System Toolbox installed, then under your proposal, MATLAB should have communicated with a server, found tf in that toolbox, noticed that I do not have the toolbox, noticed that I do have the Symbolic Toolbox, and so under your proposal it should have suggested writing my intended logical vector into a series of statements involving sym() and ilaplace(). That would have been... confusing.
5 Kommentare
Boom
am 29 Okt. 2016
Walter Roberson
am 30 Okt. 2016
When you see a example in the current release, you can search your release to see if the same thing is there.
The corresponding archived R2015b page is https://www.mathworks.com/help/releases/R2015b/phased/ug/matched-filtering.html which has pretty much the same content but just does not have the example stored in a convenient script.
Ting Liang
am 29 Okt. 2020
Bearbeitet: Walter Roberson
am 29 Okt. 2020
Hi, Walter Roberson,
excuse me, I cannot open the simulink example by using this command --
openExample('simulink_automotive/BuildingAClutchLockUpModelExample'),
the error is
Error using findExample (line 46)
Invalid argument "BuildingAClutchLockUp".
could you please help with this problem?
Thanks.
Best regards
Ting, Liang
Walter Roberson
am 29 Okt. 2020
That appears to be R2020b and later command. For R2020a use
sldemo_clutch
Ting Liang
am 30 Okt. 2020
oh, I see, I can open it now with your new command.
Man thanks.
Kategorien
Mehr zu Symbolic Math Toolbox finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!