how to fix a "Error using plot Data must be a single input of y-values or one or more pairs of x- and y-values." problem

7 vues (au cours des 30 derniers jours)
figure(3)
plot(uv_model,y(1:N-1),'LineWidth',2,uv,y,'LineWidth',2)
axis([-.01 .01 -1.05 1])
title('comparison uv Prandtl and exact solution from DNS')
xlabel('uv') % x-axis label
ylabel('y') % y-axis label
legend('lm=const','(DNS)')

Réponse acceptée

Voss
Voss le 30 Mar 2024
Try this:
plot(uv_model,y(1:N-1),uv,y,'LineWidth',2)

Plus de réponses (0)

Tags

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by