I have a problem with plotting the values that I found inside the 'for loop'. I want to plot v_corr and v, but when I run this v gets 180 same values inside the matrix? Could you help me to solve it?
Thanks a lot in advance!
M = 0:1.001:180;
e = 0:0.00557:1;
v = zeros(length(M),length(e));
for i = 1:length(M)
for j = 1:length(e)
E = atand((sind(M))/(cosd(M)-e));
v(i,j) = 2.*(atand(tand(M/2).*(1+e)/(1-e)));
v_corr(i,j) = 2.*(atand(sqrt((1+e)/(1-e)).*(tand(E/2))));