Skip to content
Snippets Groups Projects
module1_examples.m 354 B
Newer Older
  • Learn to ignore specific revisions
  • vand's avatar
    vand committed
    %% module 1, example 0
    
    myname = 'vedrana';
    first_number = 5.6;
    second_number = 8;
    a = first_number + second_number;
    b = first_number > second_number;
    disp(myname)
    disp(a)
    disp(b)
    
    %% module 1, example 1
    
    a = 50;
    b = sqrt(a);
    disp(b)
    
    %% module 1, execution in order
    
    % This will not work, since code is executed line by line
    that = 15 + this;
    this = 27;