fabien van mook

all packages "fvm-*"

package "fvm-htab"

function file "muc_linecolumn.m"

Function out = muc_linecolumn(is,transpos)
         out = muc_linecolumn(is,transpos,output_string)
         out = muc_linecolumn(is,transpos,output_string,sbefore,stempl,sbetween,safter)

calculates the line and column corresponding to 
index is, given the information in input argument
transpos.

For the organisation of struct transpos, see the comments
in this m-file and in the m-file muc_read.m. This function
muc_linecolumn() applies some provisions:
-- transpos.tbl may be empty;
-- the inner cell arrays transpos.tbl(:) may be empty 
   matrices;
-- transpos.ioff may be empty.

If input argument output_string is false, a matrix with
two columns (for the line and column indices, respectively)
is returned. When is is an array, the output will be a 
matrix with a number of rows equal to the length of is.

If input argument output_string is true (at default), a 
text string is returned, based on the input strings:
-- sbefore ("at " at default), 
-- stempl ("line <_ir_> column <_ic_>" at default), 
   which must contain the two placeholders "<_ir_>" and 
   "<_ic_>",
-- sbetween (" and at " at default),
-- safter (" " at default).
When is is an array, the output will still be a single 
string; the text is composed by the conjunction given by 
sbetween. If is is empty, the output will be empty.


(c) 2026 fabien van mook

2026.08.20 release of this file within package "fvm-htab" under GNU GPLv3+