看板
[ MATLAB ]
討論串[問題] 如何在矩陣中沿某角度取值?
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
1 2 3 (-1, 1) (0, 1) (1, 1). 4 5 6 => (-1, 0) (0 , 0) (1, 0). 7 8 9 (-1, -1) (0, -1) (1, -1). y=mx, where m=tan(theta), where theta!=pi/2. for example
(還有105個字)
內容預覽:
function L = arbitary_slice(Z). %% Step 1. Rotate matrix. X = meshgrid(1:m); % m is better to be an odd number. Y = meshgrid(1:m);. Z = Z(1:m,1:m);. X
(還有474個字)
首頁
上一頁
1
下一頁
尾頁