Undefined Function or Variable
조회 수: 3 (최근 30일)
이전 댓글 표시
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
Jan
2017년 12월 2일
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.
답변 (1개)
Walter Roberson
2017년 12월 2일
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
Walter Roberson
2017년 12월 5일
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
참고 항목
카테고리
Help Center 및 File Exchange에서 Fuzzy Logic Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!