So I need to plot a function, let's say it's: y = sin( xk )
But I can only write the matlab code like:
x = -pi : .1 : pi;
y = sin(x);
plot(x,y);
If I try to do xk, then it cries about not knowing what k is. Any idea how I can plot functions with variables that contain subscripts (the subscripts are just descriptive, they don't hold any value)? Thanks