can some1 plz help me to draw a curved line
1 回表示 (過去 30 日間)
古いコメントを表示
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]')
0 件のコメント
採用された回答
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 件のコメント
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 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!