MATLAB: How to use cell array in stateflow cell arraystateflow I want to use cell array in stateflow. for example, define, Param1 = {1,2,3,4,5,6,7,8,9,10}; Param2 = {7,6,5,4,3,2,1}; Param1 and Param2 is input from chart1 to chart10. in this situation, how can I make a cell array? Best Answer Param1 = {1,2,3,4,5,6,7,8,9,10};B1=arrayfun(@(x) num2str(x) , cell2mat(Param1),'uni',0)Param2 = {7,6,5,4,3,2,1};B2=arrayfun(@(x) num2str(x) , cell2mat(Param2),'uni',0)B1 =1×10 cell array '1' '2' '3' '4' '5' '6' '7' '8' '9' '10'B2 =1×7 cell array '7' '6' '5' '4' '3' '2' '1' Related SolutionsMATLAB: Call all element inside cell (this cell contain another set of cells) [cell_A{:}] MATLAB: Deleting a Cell and shifting cells left a = {'1' '2' '3' '4' '5' '6' '7' '8' '9'}a(3)=[] Related QuestionCombine a cell array of cell arrays to a cell array of numbersSplitting vectors into cell array in a loopHow to automate the count of consecutive values in a cell arrayConvert from cell array to vectorHow can I convert matrix to cellHow to remove an entry within a cell of a cell array
Best Answer