I have a matrix of size(n x n). It contains many rows and column which is filled with zero. I want to reduce this matrix in such a way that all rows and columns which has zero values is deleted. How to write a code for this in Modelica? Also a general algorithm for the code will be fine if anyone is not familiar with modelica software.

Similar questions and discussions