photo

Vignesh M


自 2018 起处于活动状态

Followers: 0   Following: 0

统计学

  • First Answer

查看徽章

Feeds

排序方式:

已回答
Write a function called spiral_diag_sum that takes an odd positive integer n as an input and computes the sum of all the elements in the two diagonals of the n-by-n spiral matrix.
%if you dont want recursion & want to use loops instead, make use of below code function sum = spiral_diag_sum(n) if n == 1 ...

6 years 前 | 0

已回答
Hi; Can you help me to find fault in my code?
function [u1,u2,u3] = sort3(v) if v(1) <= v(2) && v(2) <= v(3); u1=v(1);u2=v(2);u3=v(3); elseif ...

6 years 前 | 0

已回答
Is this working right
The question says to return them in 'non-decreasing' order. Your function is for decreasing order. function [u1,u2,u3] = sort3(...

6 years 前 | 0