cell2num.m
来自「实现地震勘探中」· M 代码 · 共 21 行
M
21 行
function x=cell2num(cx)% Convert a cell array of numbers into a numeric array or % a cell array of logical variables into an array of logical variables%% Written by: E. R.: March 1, 2006% Last updated:%% x=cell2num(cx)% INPUT% cx cell array whose entries a numbers or logical variables% OUTPUT% x numeric or logical array of the same dimension with the same % numbers or logical variables%% EXAMPLE% cell2num({1,2;3,4})% cell2num({true,false;false,true})x=[cx{:}];x=reshape(x,size(cx));
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?