how do we make vector the same length ( i get the error: vector must be the same length)

답변 (1개)

I think you intended elementwise division. See the documentation for array vs. matrix operations.
x=linspace(0,100);
y=linspace(0,100);
z=(-8.*x)./(x.^2+ y.^2 +1); % Note that I changed this to ./
plot3(x,y,z)

카테고리

도움말 센터File Exchange에서 MATLAB Mobile Fundamentals에 대해 자세히 알아보기

질문:

2021년 10월 7일

편집:

2021년 10월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by