Prev: A reshaping question
Next: Binning vector values
From: Kittithad Wangveerathananon on 10 Aug 2010 11:22 I just have a quick and easy problem. I use the function solve in matlab and it return the numerical value that is not yet completely computed such as 5-4*(3210*7), something like that. I kept this value into a variable, says A. Then I have the command if ( A <=0 ) .... end and it shows the error about "le". Do I have to compute A first, and what is the matlab function that can do the job for me. Thanks in advance.
From: Matt Fig on 10 Aug 2010 11:30 "Kittithad Wangveerathananon" <kittithad(a)startfromyou.com> wrote in message <i3rqqs$al7$1(a)fred.mathworks.com>... > I just have a quick and easy problem. I use the function solve in matlab and it return the numerical value that is not yet completely computed such as 5-4*(3210*7), something like that. I kept this value into a variable, says A. Then I have the command > if ( A <=0 ) > ... > end > and it shows the error about "le". > > Do I have to compute A first, and what is the matlab function that can do the job for me. > > Thanks in advance. Come on now! Help us help you. Why not copy and paste the actual output from solve instead of "something like that?" In addition, why not copy and paste the actual error message? Then we may be able to see what is going on.
From: Kittithad Wangveerathananon on 10 Aug 2010 11:57 Come on now! Help us help you. Why not copy and paste the actual output from solve instead of "something like that?" In addition, why not copy and paste the actual error message? Then we may be able to see what is going on. Really sorry for your inconvenience Matt. My question is solved with the function double(). All the information is in the other post. Sorry for wasting space, I don't know how to delete the incomplete post.
|
Pages: 1 Prev: A reshaping question Next: Binning vector values |