Plotting a graph to show correlation of voltage over current
古いコメントを表示
Hi all I'm trying to use some labwork in matlab. I need to plot a graph with the voltage on the y axis and the current on the x axis. The voltage starts at zero and goes up by 2.5v at a time. the resistance of the circuit is known as 10ohms. using the equation I = V / R (current = voltage / resistance) i can work everything i need out im just cant get matlab to plot the graph!!! Any help would be much appreciated
many thanks
simon
採用された回答
その他の回答 (2 件)
Yoav Livneh
2011 年 5 月 19 日
R=10;
V = 0:2.5:Vmax;
I = V/R;
figure; plot(I,V)
Type
doc plot
for more information.
カテゴリ
ヘルプ センター および File Exchange で 2-D and 3-D Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
