Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
an easy question

Subject: an easy question

From: Kittithad Wangveerathananon

Date: 10 Aug, 2010 15:22:04

Message: 1 of 3

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.

Subject: an easy question

From: Matt Fig

Date: 10 Aug, 2010 15:30:08

Message: 2 of 3

"Kittithad Wangveerathananon" <kittithad@startfromyou.com> wrote in message <i3rqqs$al7$1@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.

Subject: an easy question

From: Kittithad Wangveerathananon

Date: 10 Aug, 2010 15:57:05

Message: 3 of 3

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.

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us