MatrixBerryCore
cellstr2func.m
Go to the documentation of this file.
1 function fHandle = cellstr2func(inpCMat,inpArgNameList)
2 import mxberry.core.cell.cellstr2expression;
3 import mxberry.core.check.checkcellofstr;
4 import mxberry.core.string.catwithsep;
5 inpArgNameList=checkcellofstr(inpArgNameList);
6 funcPrefix=['@(',catwithsep(inpArgNameList,','),')'];
7 expStr=cellstr2expression(inpCMat,true);
8 fHandle=str2func([funcPrefix,'(',expStr,')']);
function cellstr2expression(in inpCMat, in isMatrixStyle, in isQuotingSkipped)
CELLSTR2EXPRESSION creates Matlab expression based on cell matrix of expressions corresponding to the...
function cellstr2func(in inpCMat, in inpArgNameList)
CELLSTR2EXPRESSION creates Matlab expression based on cell matrix of expressions corresponding to the...
function catwithsep(in inpStrList, in sepStr)
CATWITHSEP concatenates input cell array of strings inserting a specified separator between the strin...
function checkcellofstr(in inpArray, in flagVec, in varargin)
CHECKCELLOFSTR checks that input variable is either a char or cell of strings (char is converted to a...