clear
clc
eta = 100;
a= 0;
xi=0.016;
axis([0 0.01 0 1.1]);
x = 0:0.0001:0.01;
N = -a+1.6*(1/(xi*eta));
y=N;
plot(x,y,'LineWidth',2);
set(gca,'FontSize',10);
Hi. I'd like to plot the function $N(x)$ (indeed, constant), on MATLAB, but the code above does not return any line on window. Why? Many thanks!
If you wanted to create an array of ones then you could do
or write
Though, it is extremely unclear why you are writing
when you could just write
or just make an array of ones and write