can some1 plz help me to draw a curved line

1 回表示 (過去 30 日間)
Masd
Masd 2014 年 1 月 14 日
コメント済み: Image Analyst 2014 年 1 月 15 日
I need to make a graph for school. I need to make just the second line http://www.geofex.com/Article_Folders/potsecrets/pottaper.gif (2.logarithmic or audio taper)
i already made a linear line.. this is my program
ps. i have no idea how this program works.. we didnt learn it in school
Un=120%tension[V]
R=500%potentiometer[kOhm]
I=10%potentiometer[mm]
x=0:1:10;%dunno what this line is
Rx=(x/I)*R
U=Un*(Rx/R)
plot(x,U)
xlabel('potentiometer[mm]')
ylabel('tension[V]')

採用された回答

mohammed
mohammed 2014 年 1 月 14 日
Dear Masd
for Drawing a curved line u just need change your equation by square. i.e U=Un(Rx/R).^2;
Un=120%tension[V]
R=500%potentiometer[kOhm]
I=10%potentiometer[mm]
x=0:1:10;%dunno what this line is
Rx=(x/I)*R
U=Un*(Rx/R).^2;
plot(x,U)
xlabel('potentiometer[mm]')
ylabel('tension[V]')
x=0:1:10;%dunno what this line is;
This equation indicates that the value of x is changing from 0 to 10 at a step of 1;i.e [0,1,2,3.....,10].
i hope it will help you.
Best Of Luck.....
  2 件のコメント
Masd
Masd 2014 年 1 月 14 日
編集済み: Image Analyst 2014 年 1 月 15 日
Thank you :)
Can you tell me what .^2 means?
Image Analyst
Image Analyst 2014 年 1 月 15 日
It means to square every element of the array. So if you had a square matrix M, M^2 is like [M][M] which is a matrix multiply (first row times first column and sum, etc.) while M.^2 means the M(1,1) element is squared, the M(1,2) element is squared, and so on. Totally different result than the matrix multiply.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by