
Vignesh M
2018 年からアクティブ
Followers: 0 Following: 0
統計
MATLAB Answers
0 質問
4 回答
ランク
of 158,340
コントリビューション
0 問題
0 解答
スコア
0
バッジ数
0
コントリビューション
0 投稿
コントリビューション
0 パブリック チャネル
平均評価
コントリビューション
0 ハイライト
平均いいねの数
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 ...
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 ...
7年弱 前 | 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 ...
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 ...
7年弱 前 | 0
回答済み
Write a function called day_diff that takes four scalar positive integer inputs, month1, day1, month2, day2. These represents the birthdays of two children who were born in 2015. The function returns a positive integer scalar that is equal to the dif
if true function [ dd ] = day_diff( m1,d1,m2,d2 ) % Short circuiting! N = [31,28,31,30,31,30,31,31,30,31,30,31]; ...
Write a function called day_diff that takes four scalar positive integer inputs, month1, day1, month2, day2. These represents the birthdays of two children who were born in 2015. The function returns a positive integer scalar that is equal to the dif
if true function [ dd ] = day_diff( m1,d1,m2,d2 ) % Short circuiting! N = [31,28,31,30,31,30,31,31,30,31,30,31]; ...
7年弱 前 | 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(...
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(...
7年弱 前 | 0