danpe

12 Reputation

2 Badges

17 years, 231 days

MaplePrimes Activity


These are answers submitted by danpe

Yes, that is my oppinion too. Though after some thougt I solved the problem by, instead of using the CodeGeneration-package, making an Matlab m-file and running that in Matlab.

A1 := [[1, 2], [3, 4]];
A2 := [[7, 1], [6, 2]];
A3 := [[2, 1], [5, 2]];

fd := fopen("C:/maple/example.m", WRITE);
fprintf(fd, "function data = example3_data()\n");
seq(fprintf(fd, cat("data.A(:,:,", i, ")=[%{c,}.16g];\n"), A||i)), i = 1 .. 3);
fclose(fd)

This solved my problems and I also got directly an m-file to run in Matlab.p>

/Daniel

Page 1 of 1