how to plot in curve
조회 수: 4 (최근 30일)
이전 댓글 표시
i have value of x=[1 2 3 4 5 6 10] and y=[2 3 5 6 7 8 7]
i need to plot lik curve
my centre point will be zero and left side should be my x values and right sideshould be my y values
check out image lik that i need to plot.kindly help me
댓글 수: 0
채택된 답변
KALYAN ACHARJYA
2019년 11월 30일
Hard way:
x=[1 2 3 4 5 6 10];
x=-x;
y=[2 3 5 6 7 8 7];
data=[x,y];
plot(-length(data)/2:1:(length(data)/2)-1,[x,y]);
set(gca, 'YTick', []);
댓글 수: 2
KALYAN ACHARJYA
2019년 11월 30일
You can change the x and y values, so that it appears the simmilar curve. The shape of the curve appears based on its data.
추가 답변 (1개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!