# MATLAB: Matlab how can I make this inequality

I have an exercise that requires me to plot a function of y=x^2 from 0<=x<pi/2 what would be the right approach for this?

• There are different ways to display a graph as you are asking, one of the most basic ones being
1. define the base vector
step=0.01x=[0:step:pi/2]
2. define the function
y=x.^2;
3. display
plot(x,y)grid on