Results 1 to 2 of 2

Math Help - Some Basic Mat Lab Questions

  1. #1
    Newbie
    Joined
    Sep 2010
    Posts
    1

    Some Basic Mat Lab Questions

    If the following commands are executed in MATLAB
    a = [1:5;logspace(2,8,5)]
    a = a'
    How many rows are in a?

    2
    8
    5
    3




    How many windows are in MATLAB?

    2
    5
    4
    3



    if e = logspace(1,10,10), then

    e(5) = 100000
    e(5) = 5
    e(5) = 1000000
    e(5) = 148.4



    Which of these names are allowed in MATLAB? (Check all that may apply)

    save
    width-1
    length
    5height
    depth?
    Weight



    If vector a_even has all even numbers from 0 thru. 1000, in order to obtain a_even, which command(s) is/are the correct one(s) (select all that apply)

    a_even = 0:2:1000
    a_even = 0:1000:2
    a_even = -1:2:999
    a_even = a_even + 1
    a_even = linespace(0,1000,501)
    a_even = 1:2:1001
    a_even = 0:2:1001



    If x = [1 2 5], y = 1:a:11 what "a" should be in order to have a value for this command z = x*y

    a = 3
    a = 5
    a =2

    There is no value for "a" that will make this command be executed without an error.



    If b = logspace(2,8,10) then b is

    10x1 matrix
    Scalar
    Vector
    Two-dimensional array



    If a = 10/9 and you want to display a = 10/9, which command are you going to use?

    format fraction
    format rat
    format short
    format real
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by JOHNNY10 View Post
    If the following commands are executed in MATLAB
    a = [1:5;logspace(2,8,5)]
    a = a'
    How many rows are in a?

    2
    8
    5
    3




    How many windows are in MATLAB?

    2
    5
    4
    3



    if e = logspace(1,10,10), then

    e(5) = 100000
    e(5) = 5
    e(5) = 1000000
    e(5) = 148.4



    Which of these names are allowed in MATLAB? (Check all that may apply)

    save
    width-1
    length
    5height
    depth?
    Weight



    If vector a_even has all even numbers from 0 thru. 1000, in order to obtain a_even, which command(s) is/are the correct one(s) (select all that apply)

    a_even = 0:2:1000
    a_even = 0:1000:2
    a_even = -1:2:999
    a_even = a_even + 1
    a_even = linespace(0,1000,501)
    a_even = 1:2:1001
    a_even = 0:2:1001



    If x = [1 2 5], y = 1:a:11 what "a" should be in order to have a value for this command z = x*y

    a = 3
    a = 5
    a =2

    There is no value for "a" that will make this command be executed without an error.



    If b = logspace(2,8,10) then b is

    10x1 matrix
    Scalar
    Vector
    Two-dimensional array



    If a = 10/9 and you want to display a = 10/9, which command are you going to use?

    format fraction
    format rat
    format short
    format real
    Have you tried these?

    CB
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Two basic questions!
    Posted in the Advanced Algebra Forum
    Replies: 3
    Last Post: November 13th 2010, 09:47 PM
  2. Some basic Ti-89 questions
    Posted in the Calculators Forum
    Replies: 1
    Last Post: September 8th 2009, 04:32 AM
  3. Some basic questions
    Posted in the Calculus Forum
    Replies: 2
    Last Post: July 19th 2009, 11:53 AM
  4. some basic set questions
    Posted in the Discrete Math Forum
    Replies: 3
    Last Post: July 13th 2009, 08:17 AM
  5. Basic Inequality questions
    Posted in the Math Topics Forum
    Replies: 5
    Last Post: June 30th 2009, 12:24 PM

Search Tags


/mathhelpforum @mathhelpforum