cell2str(a,varargin)
%CELL2STR converts string cell matrice to string matrice with padded blanks
%in a flush-left style. this function is mainly used for string matrix display.
%
%for example:
%a={{'a'} {'aa'} {'aaa'};{'aa'} {'aaa'} {'a'};{'aaa'} {'a'} {'aa'}};
%or
%a=[{'a'} {'aa'} {'aaa'};{'aa'} {'aaa'} {'a'};{'aaa'} {'a'} {'aa'}];
%cell2str(a) returns:
%ans =
%a aa aaa
%aa aaa a
%aaa a aa
%
%input arguments:
%a: string cell matrix of cell depth up to 2;
%n: number of delimiters(a single white blank)between row elements.
Cite As
Ramoflaple (2026). cell2str(a,varargin) (https://www.mathworks.com/matlabcentral/fileexchange/52919-cell2str-a-varargin), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
