a = 1

b = 2

a = 1;

c = a + b % 3

p = sqrt(4)

sqrt(4)

a = [1 2 3 4]

a = [1, 2, 3, 4]

a = [1 2 3; 4 5 6; 7 8 10]

z = zeros(5,1)

a * a

a.^3

a./2

a + 10

sqrt(a)

a'

inv(a)

A = [a, a]

A = [a; a]

sqrt(-1)

A = magic(4)

%test = A(4,5)

A(4,5) = 17

A(3,: )

 B = 0 : 10 :100

 myText = 'Hello, world'

 otherText = 'You''re right'

 whos myText

 longText = [myText, '-', otherText]

 tempText = ['Il grado ?: ', num2str(f)]



 x = 0 : 2*pi/100 : 2*pi;
 y =sin(x);
plot(x, y);
% Aggiunge le etichette delle asse x e y e il nome di figura.
xlabel('x');
ylabel('sin(x)');
title('Plot of the Sine Function');

%Utilizza la linea tratteggiata per plottare tramite il terzo parametro.
%hold on
%plot(x, y, 'r--');

x = 0:pi/100:2*pi;
y = sin(x);
plot(x,y)
hold on
y2 = cos(x);
plot(x,y2,':')
legend('sin','cos')
hold off

x = (0:100);
y = (-100:0);
subplot(2,2,1);
plot(x, y);
title('1');
subplot(2,2,2);
plot(x,y);
title('2');
subplot(2,2,3);
plot(x, y);
title('3');
subplot(2,2,4);
plot(x,y);
title('4');
a =

     1


b =

     2


c =

     3


p =

     2


ans =

     2


a =

     1     2     3     4


a =

     1     2     3     4


a =

     1     2     3
     4     5     6
     7     8    10


z =

     0
     0
     0
     0
     0


ans =

    30    36    45
    66    81   102
   109   134   169


ans =

           1           8          27
          64         125         216
         343         512        1000


ans =

    0.5000    1.0000    1.5000
    2.0000    2.5000    3.0000
    3.5000    4.0000    5.0000


ans =

    11    12    13
    14    15    16
    17    18    20


ans =

    1.0000    1.4142    1.7321
    2.0000    2.2361    2.4495
    2.6458    2.8284    3.1623


ans =

     1     4     7
     2     5     8
     3     6    10


ans =

   -0.6667   -1.3333    1.0000
   -0.6667    3.6667   -2.0000
    1.0000   -2.0000    1.0000


A =

     1     2     3     1     2     3
     4     5     6     4     5     6
     7     8    10     7     8    10


A =

     1     2     3
     4     5     6
     7     8    10
     1     2     3
     4     5     6
     7     8    10


ans =

   0.0000 + 1.0000i


A =

    16     2     3    13
     5    11    10     8
     9     7     6    12
     4    14    15     1


A =

    16     2     3    13     0
     5    11    10     8     0
     9     7     6    12     0
     4    14    15     1    17


ans =

     9     7     6    12     0


B =

     0    10    20    30    40    50    60    70    80    90   100


myText =

Hello, world


otherText =

You're right

  Name        Size            Bytes  Class    Attributes

  myText      1x12               24  char               


longText =

Hello, world-You're right


tempText =

Il grado ?: 24