Rohan Shingade

9998
Rank
2
Badges
330
Score
1 – 47 of 47

Rohan Shingadesubmitted aCommenttoSolution 726292

hey mec.The function you which you have created gives negative one's(data type double) in the upper triangular and lower triangular part whereas the output should be all positive so first convert to data type integer using int function then convert to one's and zero's using logical.

on 13 Mar 2016

Rohan ShingadereceivedCommenterbadge forSolution 817596

on 27 Feb 2016

Rohan Shingadesubmitted aCommenttoSolution 817596

the ones and zeroes should be alternate whatever their position be. In even columns/rows the element a(1,1) and a(1,2) both remain the same i.e. 1 and 1 so it doesn't work for even number of columns\rows.

on 27 Feb 2016

Rohan ShingadereceivedSolverbadge forSolution 839326

on 27 Feb 2016

1 – 47 of 47