[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to solve this error mesages from this program?

From: Doug Stewart
Subject: Re: how to solve this error mesages from this program?
Date: Thu, 7 Feb 2019 10:23:35 -0500

 I am very thankful to many good guidnances from Nicholas and others for the
problem of symbolic.
By the way, the next problem is to run this program  RBCkato.m

On Thu, Feb 7, 2019 at 10:09 AM Insang HWANG <address@hidden> wrote:
Thank you very much! That is perfect graph. I should follow your corrections and try it tomorrow! Thank you for your great corrections! Insang 

I had one mistake.
Here are the new plots

I had to change 
coef = eval(jopt);



also change

  coy  = eval(jy);
      coy=fh2( kstar,lstar,vstar)

 @ Colin Macdonald

 There seems to be a problem with the eval() function when it is used with
the results from a symbolic calculation.
 The function given above calculates a symbolic matrix which it is
then trying to convert it to a numeric answer. I tried to use double instead of
eval but it still did not work. I then tried subs() to convert each symbolic symbol 
to a number and that also failed. In the end I had to convert it to a function_handle
and then evaluate it at the given values. 

Should the eval function work for this case?

Dog Stewart

reply via email to

[Prev in Thread] Current Thread [Next in Thread]