Ask Experts Questions for FREE Help !
Ask
    AkiraCole's Avatar
    AkiraCole Posts: 2, Reputation: 1
    New Member
     
    #1

    Oct 14, 2010, 05:24 AM
    How can I write a program (mat lab problem)?
    How can I write a program (mat lab problem)?
    HELP PLEASE! I


    write a program that write a table of sinus numbers 1.0, 1.1,. 2.0 with the following format

    x sin(x)
    1.0 0.841
    1.1 0.891
    1.2 0.932
    ...
    galactus's Avatar
    galactus Posts: 2,271, Reputation: 282
    Ultra Member
     
    #2

    Oct 15, 2010, 05:51 AM

    A rather simplistic apprach is to just use a small 'for' loop.

    Type:

    for n=1:10
    s(n)=sin(1+.1*n)
    end

    This loops through from n=1 to 10. For more or less solutions, change the 10 to whatever you wish.
    AkiraCole's Avatar
    AkiraCole Posts: 2, Reputation: 1
    New Member
     
    #3

    Oct 19, 2010, 08:11 AM
    Comment on galactus's post
    Thank you so much!

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Who to contact to write a program? [ 4 Answers ]

I’m an Office Manager for a small specialty company. We are growing and I want to be able to enter our daily orders into the computer. It will save time and storage space. My boss is not computer literate and it needs to be simple. I’m not sure who to contact. I have never done any...

Lab Problem [ 5 Answers ]

My chocolate Lab is about 1 1/2 years old. A couple of months ago he was a good solid 82 pounds and now he is anywhere from 40-50 lbs. I feed him 2 times a day, exercise with him, walk him, let him in the house everything a good owner would do but I don't understand why he is losing weight....


View more questions Search