MATLAB: How to convert this formula to matlab language matlab function Hi guys, I would like to convert this formula to matlab language. α = arctan(y − 1/3, x − 1/3) modulus 2π I tried a=atan2(y-1/3,x-1/3)*mod(2pi) but mod function needs more variables Thank you Best Answer a = mod(atan2(y-1/3,x-1/3), 2*pi) Related SolutionsMATLAB: Matlab language to C If n is smaller than 1, the loop will not execute, hence er will never get created. Either assign a default value to er before the loop e.g.er = nan;for ...or, if matlab coder supports it (I don't have it so don't know), issue an error before the loop if n is not valid:if n < 1 error('nombre de termes doit etre au moins 1');endfor ... MATLAB: How to plot a periodic signal f(t)= t.^3 , -pi<=t x = linspace(-2*pi,2*pi,1000);y = (mod(x+pi,2*pi)-pi).^3;plot(x,y) Related QuestionHow i can write this in matlab??? x=-1.75*10^-3; y=3.1*pi;How to plot binary sine functionMatlab language to C
Best Answer