Here is a simple tool to run Matlab and Octave code online. Simple plotting also works. Maybe helpful if you don’t have Matlab handy.
tutorialspoint.com has other online tryout terminal or IDE tools for various programming languages. Most of them are IT related. Some of them are c, c++, fortran-9, Matlab/Octave, Verilog, Perl, Tcl, and Tex.