1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Correctly displaying result on Matlab

  1. Jun 2, 2012 #1
    1. The problem statement, all variables and given/known data
    33ld01i.png

    3. The attempt at a solution
    Attempt 1
    Code (Text):

    clc;    
    clear;
    Months=char('January','February','March','April','May','June','July','August','September','October','November','December');
    CalSort=char(sortrows(Months));
    Cell={CalSort};
    disp([CalSort(:,1:6) CalSort(:,7:12)])
     
    Executing CalSort=char(sortrows(Months))
    Code (Text):

    CalSort =
    April    
    August  
    December
    February
    January  
    July    
    June    
    March    
    May      
    November
    October  
    September
     
    But the two last lines of codes doesn't give me the wanted result.
     
  2. jcsd
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted



Similar Discussions: Correctly displaying result on Matlab
  1. It's correct or not (Replies: 2)

Loading...