Sparsity pattern

Apply sparsity pattern of one matrix to another.

You are now following this Submission

OutPatternMatrix = sppattern(InPattern,InMatrix)

OutPatternMatrix - Output Matrix
InPattern - Target sparsity pattern
InMatrix - Matrix to apply sparsity pattern to

Cite As

Pascal Schulthess (2026). Sparsity pattern (https://www.mathworks.com/matlabcentral/fileexchange/27292-sparsity-pattern), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Sparse Matrices 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