i want to plot 'V' vs 'th' graph:
V = 0:0.2:10
and
th = 90-(2*atand(exp(-((v-1)/2)))) if V>1 and
th = 0 if V<=1
please help

 채택된 답변

Satuk Bugrahan
Satuk Bugrahan 2016년 9월 24일
편집: Satuk Bugrahan 2016년 9월 24일

1 개 추천

V=0:0.2:10 ;
th=zeros(1,51);
for n=1:51
if V(n)<=1
th(n)=0 ;
else
th(n)=90-(2*atand(exp(-((V(n)-1)/2)))) ;
end
end
plot (V,th)
title('V vs th')
xlabel('V')
ylabel('th')
This would do it I guess.

댓글 수: 3

Ashutosh  mohan
Ashutosh mohan 2016년 9월 24일
thanks a lot buddy
Satuk Bugrahan
Satuk Bugrahan 2016년 9월 24일
Actually I have realised I just misplaced X and Y axis . I have corrected it . No problem at all , cheers .
Ashutosh  mohan
Ashutosh mohan 2016년 9월 25일
ya.. no problem .. i had corrected it myself.. thanks for the code

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

질문:

2016년 9월 24일

편집:

2016년 9월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by