Hack.
"regexp" hack.
please check this code
problem : right angle or not
function flag = isrightangle(a,b,c)
if (c^2 == (b^2+a^2))
flag ='true'
else
flag = 'false'
end
end
Problem specification says nothing about more than one value in a row equaling the row max. Cases 5 or 6 should be included in the specification.
Thanks for the comment . I have just updated the description.
Back to basics 20 - singleton dimensions
255 Solvers
758 Solvers
229 Solvers
07 - Common functions and indexing 1
352 Solvers
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
301 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!