How can I write this C code snippet in MATLAB?

for(j=0;j<n;j++)
    {
        for(i=0,k=j;i<=j && k<=j; i++)
        {
            print [k][i]  //this part prints the value present in [k][i] co-ordinates of a 2-D array
            k--;
        }
    }

I am not getting how to write this in MATLAB. Help

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories