> warning: function name 's1' does not agree with function filename 'C:\Users\Sam\Desktop\Octave\Tests\TestFile1.m'
> error: print: no figure to print
>
the warning is just telling you that normally the main function in a file should match the filename. it's just a warning, so you can ignore it.
the error: I don't think Octave's print function works as a command like you have it written for displaying text. see
it's really just meant for printing/saving plot images.
you might want to use disp() or printf()