How to create horizontal grid lines?
조회 수: 16 (최근 30일)
이전 댓글 표시
Hi there. Can anyone help me figure out why my code isn't creating horizontal grid lines? Thank you in advance!
%%create grid
N = 100;
xgrid = linspace(103.6,104,N);
ygrid = linspace(1.25,1.5,N);
[X,Y] = meshgrid(xgrid,ygrid);
figure
hold on
plot(X,Y,'r');
plot(Y,X,'r');
xlim([103.6 104])
ylim([1.25 1.5])
댓글 수: 0
채택된 답변
KSSV
2017년 5월 23일
%%create grid
N = 100;
xgrid = linspace(103.6,104,N);
ygrid = linspace(1.25,1.5,N);
[X,Y] = meshgrid(xgrid,ygrid);
figure
hold on
plot(X,Y,'r');
plot(X',Y','r');
xlim([103.6 104])
ylim([1.25 1.5])
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Fourier Analysis and Filtering에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!