CHR

36 Reputation

2 Badges

16 years, 47 days

MaplePrimes Activity


These are replies submitted by CHR

Thanks,

works really fine now!!

One little question:
I´m exporting a martix in a txt file and I want to give the possibility to use a SAVE AS function. Have you an example for me?

 

BR
CHR

Thanks,

works really fine now!!

One little question:
I´m exporting a martix in a txt file and I want to give the possibility to use a SAVE AS function. Have you an example for me?

 

BR
CHR

Hi Alec

I´ve done the following:

with(Maplets[Examples]):
LINK:=GetFile('title'="GetFile");
M:= ImportMatrix(LINK, Source=Matlab);

this part is working

and then I´ll count the rows of the matrix with RowDimension(M) (was running until I tried GetFile) but I receive the following:
Error, RowDimension is not a command in the LinearAlgebra package

Can you help me!
Thanks

BR
CHR

 

Hi Alec

I´ve done the following:

with(Maplets[Examples]):
LINK:=GetFile('title'="GetFile");
M:= ImportMatrix(LINK, Source=Matlab);

this part is working

and then I´ll count the rows of the matrix with RowDimension(M) (was running until I tried GetFile) but I receive the following:
Error, RowDimension is not a command in the LinearAlgebra package

Can you help me!
Thanks

BR
CHR

 

Hi Alec,

Thanks for your help, but i still have a problem. I have to read in a matrix with an undefined number of rows. I´have done the following:

M:=ImportMatrix("TEST.txt",source=Matlab);
nop:=RowDimension(M)

 AM:="TEST.txt":
assign(seq('p[i],n[i]',i=1..nop)=('fscanf(AM,"%{3}dc")[]'$6));
close(AM);
seq('p[i],n[i]',i=1..nop);

 That is the error message: Error, (in assign) ambiguous multiple assignment

Do you know what´s wrong??

BR
CHR

Hi Alec,

Thanks for your help, but i still have a problem. I have to read in a matrix with an undefined number of rows. I´have done the following:

M:=ImportMatrix("TEST.txt",source=Matlab);
nop:=RowDimension(M)

 AM:="TEST.txt":
assign(seq('p[i],n[i]',i=1..nop)=('fscanf(AM,"%{3}dc")[]'$6));
close(AM);
seq('p[i],n[i]',i=1..nop);

 That is the error message: Error, (in assign) ambiguous multiple assignment

Do you know what´s wrong??

BR
CHR

Thanks for your help, works good.

BR
CHR

Thanks for your help, works good.

BR
CHR

Page 1 of 1