Undefined Function or Variable

3 visualizaciones (últimos 30 días)
Martin Harris
Martin Harris el 2 de Dic. de 2017
Comentada: Walter Roberson el 5 de Dic. de 2017
Hi, I keep trying to open online examples for Matlab 2017a however when entering the example into the command section I either ger "Undefined Function or Variable" or I get a "error" message. Is this because the examples are from a newer version or do these examples require add on purchases? Regards, Martin
  1 comentario
Jan
Jan el 2 de Dic. de 2017
Please post any details: The code and the complete error message. What exactly do you call "command section"? Usually the code should run in the internet browser without problems.

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
Walter Roberson el 2 de Dic. de 2017
None of the examples in themselves require add-on purchases, but the examples might make use of add-on Toolboxes that would have to be licensed and installed.
Also, the documentation you would normally be looking at online is for R2017b at the moment, so some of the functions and examples might be newer than your system.
If you give an example of one that does not work for you, we will tell you what is needed to run it.
  2 comentarios
Martin Harris
Martin Harris el 5 de Dic. de 2017
Hi,
I am having problems with opening the following examples:
sh_water_supply_system
openExample('fuzzy_featured/fuzzytankdemo')
sh_pump_fixed_disp
Kind regards
Martin
Walter Roberson
Walter Roberson el 5 de Dic. de 2017
sh_water_supply_system has been at toolbox/physmod/sh/shdemos/sh_water_supply_system.slx since R2013a or possibly earlier. That is part of Simscape Fluids (previously known as SimHydraulics I think it was.)
sh_pump_fixed_disp is at toolbox/physmod/sh/shdemos/sh_pump_fixed_disp.slx which is part of the same toolbox. It appears to have been new as of R2016a (or had a different name before.)
R2017a (I think it was) was the first release to use openExample(), and the examples also moved directories when that happened. In older versions the fuzzy tank demo file is at
toolbox/fuzzy/fuzdemos/fuzzytankdemo.m
which is part of the Fuzzy Logic toolbox. As of R2016a it moved to examples/fuzzy_featured/fuzzytankdemo.m under matlabroot

Iniciar sesión para comentar.

Categorías

Más información sobre Fuzzy Logic Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by