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!