Info

This question is closed. Reopen it to edit or answer.

Conversion to double from sym is not possible.

1 view (last 30 days)
Matthew Kramer
Matthew Kramer on 31 May 2014
Closed: MATLAB Answer Bot on 20 Aug 2021
I keep receiving the "Conversion to double from sym is not possible." error. It worked and plotted then I worked on another script and attempted to come back to this script and it now gives me this error.

Answers (1)

Star Strider
Star Strider on 31 May 2014
What line threw the error?
I ran it without the function definition and it ran without error.
It yielded:
y =
0 10 20 30 40 50 60 70 80 90 100
Pcrit =
[ 4500, 4500, 4500, 3150, 3900, 4650, 5400, 6150, 6900, 7650, 8400]
and the plot.
The function creates its own workspace and it has no arguments or global variables. Without knowing more about what you were doing or what threw the error, I have no idea why it wouldn’t run for you after it successfully ran before.
  3 Comments
Matthew Kramer
Matthew Kramer on 4 Jun 2014
Is there any reason that it would run once and plot but then stop plotting the second time around? Even if I clear everything (clc, clear)
Star Strider
Star Strider on 4 Jun 2014
I have no idea. I can’t reproduce the error. Your code runs without error repeatedly, plot and all.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!