⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vec2mesh.m

📁 国外一款非线性估计的工具箱
💻 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 + -