Clear Filters
Clear Filters

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

10 views (last 30 days)
S11 =@(x1,x2)(262144*x2*((25*x1^2)/2-75000*x1+75000000))/5592405333333333
x1=0:6000;
x2= 0:800;
contour(x1,x2,S11)

Accepted Answer

VBBV
VBBV on 17 Mar 2024
Edited: VBBV on 17 Mar 2024
contour(x1,x2,S11(x1,x2))
  6 Comments
VBBV
VBBV on 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))

Sign in to comment.

More Answers (0)

Categories

Find more on Contour Plots in Help Center and File Exchange

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!