lengthcells.m
来自「JLAB is a set of Matlab functions I have」· M 代码 · 共 16 行
M
16 行
function[s]=lengthcells(x,n)%LENGTHCELLS Determines the lengths of all elements in a cell array% _________________________________________________________________% This is part of JLAB --- type 'help jlab' for more information% (C) 2000, 2004 J.M. Lilly --- type 'help jlab_license' for details for i=1:length(x) s(i,1)=length(x{i});end% if ~isempty(n)% s(i,1)=size(x{i},n);% else% s(i,:)=size(x{i});% end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?