?? vec2mesh.m
字號:
function meshstruct = vec2mesh (vecstruct,npts)% VEC2MESH transforms grid points from vector to mesh.%% MESHSTRUCT = VEC2MESH(VECSTRUCT,NPTS)% transforms the vector variable VECSTRUCT to the mesh structure% MESHSTRUCT based on the values of NPTS (numbers of points). The% MESHSRTUCT variable can be used in MESH fuction, for instance.% VEC2MESH works for 2-dim systems only (NPTS must be a vector of% dimension 2).%% Nonlinear Filtering Toolbox version 2.0rc1% Copyright (c) 1995 - 2007 NFT developement Team,% Department of Cybernetics,% University of West Bohemia in Pilsenif length(npts)~=2 error('The function works for 2-dim systems only.')endind = 0;for j = 1:npts(1) for i = 1:npts(2) ind = ind + 1; meshstruct(i,j) = vecstruct(ind); end end
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -