Translate code from Matlab to Mathcad "iter"
Hello!
I have a matlab script, se part of it below. I'm new to both Matlab and Mathcad and programming in general.
My question is how does "iter" work in Matlab, is it just an another variable or does it actually perform some calculations? If not, can the code below be translated to Mathcad to perform some kind of iteration?
I hope this question makes sense.
%Iteration parameters
R=[];IT=[];mx=5800;deps=2;ini=2;i=1;vxy=0;
while vxy <= 1.001*txy
%STEP 2
%Estimate average strain in the studied element
e1=(i*deps+ini)*10^-6;
%STEP 3
%Uppskatta spricklutning
v=v;
%Estimate reinforcement stress in the y-direction
fsy=0.7*e1*Es;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
i=i+1; iter=0;fsxcr=0; fsycr=fyy*1.1;
delta_e=0;
while (fsxcr >= fyy | fsycr >= fyy) & iter < mx
iter=iter+1;

