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

21 次查看(过去 30 天)
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)

回答(1 个)

Walter Roberson
Walter Roberson 2025-11-25,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);

标签

Community Treasure Hunt

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

Start Hunting!

Translated by