Results 1 to 2 of 2

Math Help - Checking integer value belongs to interval

  1. #1
    Newbie
    Joined
    Apr 2009
    Posts
    9

    Checking integer value belongs to interval

    Hello,

    how can I let matlab check if a given integer z belongs to the interval [-1,1]?
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor

    Joined
    Aug 2006
    Posts
    18,959
    Thanks
    1783
    Awards
    1
    Quote Originally Posted by marty830 View Post
    how can I let matlab check if a given integer z belongs to the interval [-1,1]?
    I don't know anything about matlab, but I know that there are only three integers in [-1,1]: -1,~0,~1.
    So it can't be very hard.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 1
    Last Post: December 6th 2011, 12:47 PM
  2. I am hope that my question belongs here.
    Posted in the Number Theory Forum
    Replies: 4
    Last Post: April 15th 2010, 01:06 AM
  3. checking answer on units of integer
    Posted in the Advanced Algebra Forum
    Replies: 3
    Last Post: October 27th 2009, 03:14 AM
  4. im not sure if this belongs here
    Posted in the Calculus Forum
    Replies: 5
    Last Post: February 9th 2008, 05:47 AM
  5. I think this belongs here??
    Posted in the Algebra Forum
    Replies: 9
    Last Post: May 31st 2007, 07:46 PM

Search Tags


/mathhelpforum @mathhelpforum