精品偷拍一区二区三区,亚洲精品永久 码,亚洲综合日韩精品欧美国产,亚洲国产日韩a在线亚洲

  • <center id="usuqs"></center>
  • 
    
  • MATLAB高手,請問誰能幫忙解釋以下程序的含義,

    MATLAB高手,請問誰能幫忙解釋以下程序的含義,
    % EDGE4CONNECTED Creates edges where each node
    % is connected to its four adjacent neighbors on a
    % height x width grid.
    % E - a vector in which each row i represents an edge E(i,1) --> E(i,2).
    % The edges are listed is in the following neighbor order:
    % down,up,right,left,where nodes indices are taken column-major.
    function E = edges4connected(height,width)
    N = height*width;
    I = []; J = [];
    % connect vertically (down,then up)
    is = [1:N]'; is([height:height:N])=[];
    js = is+1;
    I = [I;is;js];
    J = [J;js;is];
    % connect horizontally (right,then left)
    is = [1:N-height]';
    js = is+height;
    I = [I;is;js];
    J = [J;js;is];
    E = [I,J];
    end
    PS:is = [1:N]'; is([height:height:N])=[];
    I = [I;is;js];都是什么意思啊?
    其他人氣:756 ℃時間:2020-10-02 03:55:37
    優(yōu)質(zhì)解答
    你運行一下相信你就知道他是什么意思了
    N=13;
    height=2;
    is=[1:N]'
    is([height:height:N])=[]%刪除is矩陣中部分元素
    js=is+1
    I=[]
    I=[I;is;js]
    我來回答
    類似推薦
    請使用1024x768 IE6.0或更高版本瀏覽器瀏覽本站點,以保證最佳閱讀效果。本頁提供作業(yè)小助手,一起搜作業(yè)以及作業(yè)好幫手最新版!
    版權(quán)所有 CopyRight © 2012-2024 作業(yè)小助手 All Rights Reserved. 手機版