Re: Error code



Dear Martin ,

Next code I am going to write after adding those file in mat file is

R_Mat=[R_X R_Y R_Z];
size(R_Mat);
CovMat=cov(R_Mat);

This is primary for value at Risk modeling.But first line , i.e.
adding those 1 column matrix files, giving me the error code.

Regards,

Debashis

Martin Jørgensen wrote:


Michael Wild wrote:
debashis dutta wrote:
Hi,

While combining three arrays with the command in matlab 7,

deb_Mat=[R_X R_Y R_Z];

I am getting this error

??? Error using ==> horzcat
CAT arguments dimensions are not consistent.

Could anyone please suggest how to resolve the same.

with best Regards,

Debashis

if the arrays do not have the same number of rows, how do you
propose
they should be concatenated horizontally?

By filling in zeros in the bottom of the shorter matrixes?

How about using size() on all R-matrixes and perhaps make a
for-loop to
insert zeros?


Best regards
Martin Jørgensen


--

--------------------------------------------------------------------
-------
Home of Martin Jørgensen - <http://www.martinjoergensen.dk>

.



Relevant Pages

  • Re: Error code "horzcat - matlab 7
    ... While combining three arrays with the command in matlab 7, ... CAT arguments dimensions are not consistent. ... with best Regards, ... How about using sizeon all R-matrixes and perhaps make a for-loop to insert zeros? ...
    (comp.soft-sys.matlab)
  • Re: bug in zeros and ones when "logical" class name is used
    ... Trailing string input must be a valid numeric class name. ... name as the last input to the ZEROS function, it must be a valid numeric ... For example, sparse arrays and double-precision ... logicals are not." ...
    (comp.soft-sys.matlab)
  • Re: Data Environment String Parameter loosing leading zeros
    ... On a related issue Excel is a sod when it comes to leading zeros, ... Best Regards ... the parameter host data type in the Data ... Until you sort out the reason for this you could use a kludge like: ...
    (microsoft.public.vb.general.discussion)
  • Re: TSQL Problem
    ... I had tried that with the only ttesults being more zeros. ... Best regards ... >Hi Paul, ... >You need to declare your variable as a float if you want the decimals - ...
    (microsoft.public.sqlserver)
  • Re: Sumproduct and wildcards
    ... SUMPRODUCT can't handle arrays that are of different dimensions, ... Regards, ...
    (microsoft.public.excel.worksheet.functions)