摘要:
nrows = 4; ncols = 6; A = ones(nrows,ncols); 遍历矩阵并为每个元素指定一个新值。对主对角线赋值 2,对相邻对角线赋值 -1,对其他位置赋值 0。 for c = 1:ncols for r = 1:nrows if r == c A(r,c) = 2; e 阅读全文
摘要:
F = getframe(h,rect) specifies a rectangular area from which to copy the pixmap. rect is relative to the lower left corner of the figure or axes h,in 阅读全文
摘要:
hold on 使当前轴及图形保持而不被刷新,准备接受此后将绘制的图形,多图共存 hold off 使当前轴及图形不在具备被刷新的性质,新图出现时,取消原图 hold on 在当前图的轴(坐标系)中画了一幅图,再画另一幅图时,原来的图还在,与新图共存,都看得到 close allx=0:2:100; 阅读全文