multiple plots on same axis
조회 수: 1 (최근 30일)
이전 댓글 표시
greetings.
How do i plot the graph of A vesrs n for i varying from 3% to 12% in steps of 1% and n varying from 1 to 20. Where Ckwh=0.0001 and is a constant.Multiple graphs of A versus n in the same plot are required.
The result of the plot must look like the picutre below:
댓글 수: 2
채택된 답변
KALYAN ACHARJYA
2019년 6월 10일
Ckwh=0.0001;
n=1:2:20;
A=[];
for i=3:12
A=(((1+i).^n(:)-1)/(i*(1+i).^n(:)))*Ckwh*8760;
plot(n,A);
hold on;
end
댓글 수: 5
Jan
2019년 6월 11일
@Tafadzwa Masocha: If the original problem of this thread is solved, be so kind an mark the answer as "accepted". Thanks.
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!