SYMBMAT

subscripted symbolic matrix (SYMBMATMAKE vectorized)

You are now following this Submission

SYMBMATMAKE by Richard Hindmarsh was the inspiration for this submission. I have rewritten to vectorize it. No more loops! It also illustrates how to write compact code without loops.

Short Description:
Returns symbolic matrices with subscripts which can be manipulated using the Symbolic Toolbox.

e.g. symbmat('a',2,3)

returns
[ a11, a12, a13]
[ a21, a22, a23]

e.g. symbmat('a',1,2)

returns
[ a1, a2]

Cite As

Mukhtar Ullah (2026). SYMBMAT (https://www.mathworks.com/matlabcentral/fileexchange/5905-symbmat), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: SYMBMATMAKE

Categories

Find more on Symbolic Math Toolbox in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

optimised by removing repmat and employing ones