float(H) would yield a converted matrix. 

On Sunday, May 17, 2015 at 10:03:28 AM UTC+2, Lytu wrote:
>
> Hello Julia users,
>
> How can i convert an Array{Int32,2} matrix H in an Array{Float64,2} matrix?
>
> For example: H=[5 3 6;3 9 12;6 12 17] 
>
> I ask this because i would like to do this:   H=[5 3 6;3 9 12;6 12 17] 
>                                                               
> val=-7.046128291045994
>                                                               H[2,1] = val
> but it gives an error: InexactError()
>
> I think it is because "val" is a* float64* and the "matrix H" is an 
> *Array{Int32,2}*
>
> Does anybody know how i can do this?
>
> Thanks
>

Reply via email to