i have "Error in state of SceneNode. String scalar or character vector must have valid interpreter" Please help me to solve it T-T

19 views (last 30 days)
title("Trường hướng và nghiệm cho y' = 4y(1-y)\sin(10x)", "FontSize", 10);
xlabel('x'); ylabel('y');
axis([-2 2 -1 2]);
grid on;
legend('Trường hướng', 'Đường nghiệm', 'Location', 'NorthWest');
Warning: Ignoring extra legend entries.
hold off;
Warning: Error in state of SceneNode.
String scalar or character vector must have valid interpreter syntax:
Trường hướng và nghiệm cho y' = 4y(1-y)\sin(10x)

Answers (1)

Walter Roberson
Walter Roberson on 25 Nov 2025 at 6:18
The TeX interpreter does not support any of the trig functions.
Furthermore, you coded \sin(10x) instead of \sin{10x}
In order to use \sin you would need to use LaTeX interpreter. Unfortunately, you are using UTF-8 characters such as
'ư'+0
ans = 432
and LaTeX interpreter does not support UTF-8 characters.
About all you can do is convert the \sin(10x) to sin(10x) (possibly including the space)
title("Trường hướng và nghiệm cho y' = 4y(1-y) sin(10x)", "FontSize", 10);

Tags

Community Treasure Hunt

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

Start Hunting!