Face Error "Input arguments must be numeric or objects which can be converted to double' while plotting Contour

4 vues (au cours des 30 derniers jours)
S11 =@(x1,x2)(262144*x2*((25*x1^2)/2-75000*x1+75000000))/5592405333333333
x1=0:6000;
x2= 0:800;
contour(x1,x2,S11)

Réponse acceptée

VBBV
VBBV le 17 Mar 2024
Modifié(e) : VBBV le 17 Mar 2024
contour(x1,x2,S11(x1,x2))
  6 commentaires
VBBV
VBBV le 17 Mar 2024
use meshgrid function
S11 = @(x1,x2) (262144*x2.*((25*x1.^2)/2-(75000*x1)+75000000))/5592405333333333;
x1=0:6000;
x2= 0:800;
[X1 X2] = meshgrid(x1,x2);
contour(X1,X2,S11(X1,X2))

Connectez-vous pour commenter.

Plus de réponses (0)

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by