why did the "text" function stop working while creating a new section in my live data

8 views (last 30 days)
in live editor, while running data sets and creating sections for different variables, the text function key was working but now is not working

Answers (1)

John D'Errico
John D'Errico on 25 Sep 2023
Edited: John D'Errico on 25 Sep 2023
Whenever a function "stops working" you need to see if you have created a variable named text, or another function or script by that name. If you did any of those things, rename them to something else, that is NOT already used by a useful MATLAB function.
You can check for that by the following command:
which text -all
built-in (/MATLAB/toolbox/matlab/graphics/primitive/text)
The point being, functions just don't stop working, unless you did something to make that happen.
If, by "stopped working" you meant something else, then you need to explain what error you now get.

Categories

Find more on Entering Commands 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!