Problem 413. Back to basics 23 - Triangular matrix
59.2% Correct | 40.8% Incorrect
Last Solution submitted on Mar 06, 2023
Chad Gilbert on 11 Jul 2013
Your test suite doesn't really match the problem statement. The tests require matrices with *exactly* all elements abot the main diagonal to be 0 *and* all elements on or below the main diagonal to be 1.
goc3 on 24 Feb 2017
Additional test cases have been added.
Diogo Carvalho on 10 Feb 2019
Running this on octave returns the correct results yet the page still says I'm wrong.
function y = triangMatrix(x)
Problem Recent Solvers789
Sum of first n terms of a harmonic progression
The Answer to Life, the Universe, and Everything
More from this Author39
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!