DOUBLE cannot convert the input expression into double array

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 8K views
bugatti79
Messages
786
Reaction score
4
Hi Folks,

I have a symbolic A=18*1*18 array containing symbols/expressions. I want to populate certain entries of this array into another matrix. For example

K(1,1)=A(1,1,1)

I get the following

? The following error occurred converting from sym to double:
Error using ==> mupadmex
Error in MuPAD command: DOUBLE cannot convert the input expression into a double array.

If the input expression contains a symbolic variable, use the VPA function instead.

I have tried
K(1,1)=vpa(A(1,1,1)) and other forms but no luck
Is there a workaround?
Thanks
 
Physics news on Phys.org