Convert a matrix of symbolic variables and numbers to a cell array.
Create the following symbolic matrix.
syms xy
S = [x 2 3 4; y 6 7 8; 9 10 11 12]
S =
Convert this matrix to a cell array by using sym2cell. The size of the resulting cell array corresponds to the size of the input matrix. Each cell contains an element of the symbolic matrix S.
Input symbolic array, specified as a symbolic vector, matrix, or multidimensional
array. S also can be a scalar, that is, a symbolic number, variable,
expression, or function.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.