[Matlab] - help request

#1
I am working mostly with statistics (as a student) and i want to learn Matlab as it seems to be something of an industri standard (finance). Well that and R. I have a question and a request..


The following code, when entered into the editor return an error message about undefined function or method 'Matlab' for input arguments of type 'char'. What is wrong ?
Question:
Code:
clc

clear all

A = 5

if A > 3 
    
    disp('A er større end 3')
    
else
    
    disp('A er mindre end 3')
end

Request:
Generate data X and Y and create a simpel linear regression and a residual plot, i often find that these simple examples are very usefull for learning the basics :)

Thanks forum!