|
|
Dimensionless matrix
Hi everybody,
How can I define dimensionless matrix in matlab?
I have set of data stored in a matrix which I call as preliminary matrix. I have a for loop which iterates through the rows of this matrix group the data and does some calculation for each group. I want to store the results of each group calculation in another matrix. I mean every time that the code iterates through the loop store the data in matrix without overwriting the results from previous iteration. The reason that I need a dimensionless is that I don't know in advance how many groups will be created during each iteration.
thanks in advance
|
|
0
|
|
|
|
Reply
|
khanmoradi (52)
|
11/19/2011 4:58:10 PM |
|
"SM" wrote in message <ja8n72$190$1@newscl01ah.mathworks.com>...
>
The reason that I need a dimensionless is that I don't know in advance how many groups will be created during each iteration.
===========
Describe the computation in a little more detail, and maybe the community can suggest a way to predict the memory pre-allocation needed.
|
|
0
|
|
|
|
Reply
|
mattjacREMOVE (3177)
|
11/19/2011 5:49:10 PM
|
|
On 11/19/2011 10:58 AM, SM wrote:
> Hi everybody,
> How can I define dimensionless matrix in matlab?
> I have set of data stored in a matrix which I call as preliminary
> matrix. I have a for loop which iterates through the rows of this matrix
> group the data and does some calculation for each group. I want to store
> the results of each group calculation in another matrix. I mean every
> time that the code iterates through the loop store the data in matrix
> without overwriting the results from previous iteration. The reason that
> I need a dimensionless is that I don't know in advance how many groups
> will be created during each iteration.
>
> thanks in advance
Any reason the computation can't return it's results in a new cell of a
cell array?
--
|
|
0
|
|
|
|
Reply
|
none1568 (6639)
|
11/19/2011 6:29:18 PM
|
|
What exactly is a "group"? For a given input matrix of a fixed,
known, given size why isn't the number of "groups" (whatever that is)
known in advance? Why can't you calculate the number of groups? Does
the number of groups somehow depend on what values you encounter in
your input matrix???
|
|
0
|
|
|
|
Reply
|
imageanalyst (7590)
|
11/19/2011 9:50:05 PM
|
|
|
3 Replies
22 Views
(page loaded in 0.039 seconds)
|
|
|
|
|
|
|
|
|