How can I write this C code snippet in MATLAB? - Programmers Heaven

Howdy, Stranger!

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

Categories

How can I write this C code snippet in MATLAB?

DrFabianskiDrFabianski IndiaPosts: 1Member
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

Tagged:
Sign In or Register to comment.