% Using the log to the base 10 function z=log10(100) %character variables abc='My name is' def=' not Slim Shady, not T Pain but Yung Joc' % concactenating the two strings, that is combining two strings ghi=[abc,def] % defining variables as strings gives strange values a=5 b=7 c1=a*b %defining a as a string '5'. See what you get for c2 a='5' c2=a*b %Defining arrays a1=[5.6] b1=[5.6 2.3; 5.7 8.9] c1=[1 2 3; 4 5 6] %plotting options Example of x^2 vs x from 0.2 to 4 % defining a range of values for x from 0.2 to 4.0 in increments of 0.1 x=0.2:0.1:4.0 % Developing y=x^2 line. Why do I use x.^2? y=x.^2 % in plot -- is for dashed line and o for circles plot(x,y,'--o','LineWidth',2,'MarkerSize',6) % \bf - bold font % Title of plot title ('\bf x^2 vs x') % Y-axis label ylabel('\bf x^2') % x axis label xlabel('\bf x') % legend for the line legend('x^2') % give you a grid grid on