필터 지우기
필터 지우기

Help ploting logarithmic equation.

조회 수: 1 (최근 30일)
Andrejus
Andrejus 2014년 12월 4일
편집: Star Strider 2014년 12월 4일
Hi all,
I have a following equation:
m=-3;
k=5.00034535E+11;
S=0.5:0.5:1000;
log10(S)=-1/m*log10(N)+1/m*log10(k);
I need to plot log10(N) versus log10(S). However, I do not know how to deal with this. Can someone help me out?
Thank you in advance!

채택된 답변

Star Strider
Star Strider 2014년 12월 4일
편집: Star Strider 2014년 12월 4일
A couple lines are necessary to rearrange your equation to give log10(N) as a funciton of log10(S). Not surprisingly, the result is a straight line:
m=-3;
k=5.00034535E+11;
S=0.5:0.5:1000;
log10N = log10(k) - m*log10(S);
figure(1)
plot(log10(S),log10N)
grid
xlabel('log_{10}(S)')
ylabel('log_{10}(N)')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Language Fundamentals에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by