First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Convert a sage.interfaces.matlab.MatlabElement object

Hi,

I tried the following command to call Matlab to generate a sparse matrix and multiply it with a vector

sage: matlab('rand(3)')*matrix([1,2,2]).T
    0.0344    0.7655    0.4898
    0.4387    0.7952    0.4456
    0.3816    0.1869    0.6463

This is not correct. It seems the multiplication is not done. I'm curious if there is anyway to do the multiplication of a sage.interfaces.matlab.MatlabElement object and a built-in matrix object? Or is there anyway to convert a sage.interfaces.matlab.MatlabElement object to one that can do multiplications with the built-in matrix types? Thanks