K
kilter
Anyone know of a routine that will return the number of rows and
columns in a matrix?
columns in a matrix?
kilter said:Anyone know of a routine that will return the number of rows and
columns in a matrix?
Nils said:As C has no matrices, you should explain further what you mean
and want.
As C has no matrices, you should explain further what you mean
and want.
It depends. If the numerical data is actually stored as a (ascii orkilter said:Thanks for your quick reply. The idea is that I open a file that has
numerical data in a form of a matrix but I don't know a priori the
number of columns and rows of this file. I want to know the number of
rows and columns of that data matrix, after I read it and store it as a
matrix in C, in order to apply operations to its entries.
I am a novice really and your help is very much appreciated.
Thank you
kilter said:Thanks for your quick reply. The idea is that I open a file that has
numerical data in a form of a matrix but I don't know a priori the
number of columns and rows of this file. I want to know the number of
rows and columns of that data matrix, after I read it and store it as a
matrix in C, in order to apply operations to its entries.
I am a novice really and your help is very much appreciated.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.