Very weird: Conversion to double from struct is not possible.

  • Follow


Hi all,

I'm pressed with time and I've only recently started receiving this error:

"Conversion to double from struct is not possible."

This appears whenever I use 'get' or 'set' on gca, which used to work and should normally work. For instance:

figure
plot(rand(100,1))
get(gca)

should return the axes properties .. in my case, I get the above error. The Matlab installation at home does not have this problem.

Any clues? Many, thanks in advance.
0
Reply Bogdan 9/22/2010 4:54:05 PM

It looks like you have used gca as a variable name somewhere in you code so MATLAB now treats it as a variable not a function. If you have assigned a structure to it, that explains the message,
0
Reply Malcolm 9/22/2010 5:08:05 PM


I came back to post the same thing but you beat me to it. i didn;'t even consider looking in the workspace for a variable called "gca" because I would never asign anything to "gca" ... but there you go, apparently I did.

Thanks!
0
Reply Bogdan 9/22/2010 5:16:22 PM

2 Replies
1127 Views

(page loaded in 0.02 seconds)

Similiar Articles:













7/21/2012 7:16:10 PM


Reply: