MATLAB: How can i a create a struct help given 3 cell how do I create a struct with these 3 cell? Best Answer Hi,the best way to learn Matlab is reading the excellent documentation. Have a read here:https://de.mathworks.com/help/matlab/ref/struct.htmlBest regards Stephan Related SolutionsMATLAB: Understanding basics of struct To create a cell array with a single field (column)d = dir;folderPaths = {d.folder};folderPaths_range = {d(5:11).folder}; % for files 5 to 11Length of structn = numel(d);To sort in "natural way", see this FEX submission by Stephen: https://www.mathworks.com/matlabcentral/fileexchange/47434-natural-order-filename-sort MATLAB: How to write a function for fectorial You might find the cumprod (link) function helpful. Related QuestionHow to dynamically create a structHow to delete a field from a struct
Best Answer