mazispatzi

10 Reputation

One Badge

7 years, 155 days

MaplePrimes Activity


These are questions asked by mazispatzi

Hi everybody!

I am generating MATLAB code for a matrix created in Maple 2017 using the following code:

CodeGeneration[Matlab]([codegen[optimize](matrix)]);

My question now: How can I specify that the generated code should not include zero elements of the matrix.

Since the matrices are sparse, there are hundrets of lines indicating zeros elements.

This is not necessary since I initialise the matrix with zeros in MATLAB anyway.

Many thanks for your help!

 

Page 1 of 1