simple code error, help me please

조회 수: 8 (최근 30일)
whiyan
whiyan 2020년 10월 26일
편집: Rik 2020년 10월 26일
v = 0:3;
w = sqrt(2*11.9*(8.85*10^-14)*((10^16)+(10^18))*(0.817+v)/((1.6*10^-19)*(10^16)*(10^18)));
c = ((40*10^-4)*(0.6*10^-4)*(11.9*8.85*10^-14)/w)+((((40*10^-4)+(2*0.6*10^-4))*(0.15*10^-4)*(11.9*8.85*10^-14))/w);
plot(v,c)
above is the code, but it has errors like the follows.
error: operator /: nonconformant arguments (op1 is 1x1, op2 is 1x4)
error: 'c' undefined near line 1, column 1

채택된 답변

Stephan
Stephan 2020년 10월 26일
v = 0:3;
w = sqrt(2*11.9*(8.85*10^-14)*((10^16)+(10^18))*(0.817+v)./((1.6*10^-19)*(10^16)*(10^18)));
c = ((40*10^-4)*(0.6*10^-4)*(11.9*8.85*10^-14)./w)+((((40*10^-4)+(2*0.6*10^-4))*(0.15*10^-4)*(11.9*8.85*10^-14))./w);
plot(v,c)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Vector Fields에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by