we have seen the function triu(A,k) which extracts upper triangular part of A. But i have to write my own function with the header U = myTriu(A,k) which does the same thing and apply it with A= (2 5 6 4 8 9 10 15 12),k) where k=-2,-1,1
Could anyone help me,please?
3 Comments
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/508395-help-for-a-function-which-works-like-triu-function-in-matlab#comment_804116
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/508395-help-for-a-function-which-works-like-triu-function-in-matlab#comment_804116
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/508395-help-for-a-function-which-works-like-triu-function-in-matlab#comment_804118
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/508395-help-for-a-function-which-works-like-triu-function-in-matlab#comment_804118
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/508395-help-for-a-function-which-works-like-triu-function-in-matlab#comment_804122
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/508395-help-for-a-function-which-works-like-triu-function-in-matlab#comment_804122
Sign in to comment.