Results 1 to 7 of 7

Math Help - how to create a sequence s1 s2 s3 ..s11 s12....

  1. #1
    Newbie
    Joined
    Jun 2010
    Posts
    8

    how to create a sequence s1 s2 s3 ..s11 s12....

    sir,can u tell me how to generate the sequence s1 s2 s3 s4.. s11 s12 ...
    upto required integer value programitically in MATLAB.
    Last edited by mr fantastic; June 4th 2010 at 01:49 PM. Reason: Added information given in LiveChat.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor undefined's Avatar
    Joined
    Mar 2010
    From
    Chicago
    Posts
    2,340
    Awards
    1
    Quote Originally Posted by ganesh View Post
    sir,can u tell me how to generate the sequence s1 s2 s3 s4.. s11 s12 ...
    upto required integer value programitically
    There is not enough information.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    Jun 2010
    Posts
    8
    sir,
    can u tell me how to generate the sequence s1 s2 s3 s4.. s11 s12 ...
    upto required integer value programatically in MATLAB.[/quote]



    explaining more.
    suppose i have value of n= 27;
    i want to generate the sequence & display it as s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 13....upto ...s27.this should be done programitically.
    Follow Math Help Forum on Facebook and Google+

  4. #4
    Newbie
    Joined
    Jun 2010
    Posts
    8

    how to generate array s1 s2 s3 s4....sn

    sir,
    i want to generate an array s1 s2 s3...upto sn programatically.
    n may be =25.

    where 's' is a character
    Follow Math Help Forum on Facebook and Google+

  5. #5
    MHF Contributor undefined's Avatar
    Joined
    Mar 2010
    From
    Chicago
    Posts
    2,340
    Awards
    1
    Quote Originally Posted by ganesh View Post
    explaining more.
    suppose i have value of n= 27;
    i want to generate the sequence & display it as s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 13....upto ...s27.this should be done programitically.
    Generating this sequence will be more difficult than generating the sequence 1, 2, 3, 4, ...

    It depends on the sequence.
    Follow Math Help Forum on Facebook and Google+

  6. #6
    MHF Contributor undefined's Avatar
    Joined
    Mar 2010
    From
    Chicago
    Posts
    2,340
    Awards
    1
    Wait, are you saying you want to display the string "s1 s2 ... s27"? As in, s1 doesn't stand for another number?
    Follow Math Help Forum on Facebook and Google+

  7. #7
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by ganesh View Post
    sir,can u tell me how to generate the sequence s1 s2 s3 s4.. s11 s12 ...
    upto required integer value programitically in MATLAB.
    Can you be more precise, do you mean how do you generate all the variables named s1, s2, ... sn without having to know n in advance?

    But try something based on:

    Code:
    >nn=124
    >eval(['s',num2str(nn),'=0'])
    CB
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Help to create a question
    Posted in the Discrete Math Forum
    Replies: 1
    Last Post: October 10th 2011, 03:22 AM
  2. How to create a formula
    Posted in the Algebra Forum
    Replies: 4
    Last Post: July 28th 2011, 11:57 AM
  3. how to create def symbol?
    Posted in the LaTeX Help Forum
    Replies: 4
    Last Post: October 10th 2009, 12:42 AM
  4. create a polynomial...
    Posted in the Pre-Calculus Forum
    Replies: 1
    Last Post: August 30th 2008, 03:18 PM
  5. create a square
    Posted in the Geometry Forum
    Replies: 2
    Last Post: August 31st 2007, 05:56 AM

Search Tags


/mathhelpforum @mathhelpforum