Duddela Sai Prashanth
Followers: 0 Following: 0
統計
MATLAB Answers
0 質問
5 回答
ランク
of 153,912
コントリビューション
0 問題
0 解答
スコア
0
バッジ数
0
コントリビューション
0 投稿
コントリビューション
0 パブリック チャネル
平均評価
コントリビューション
0 ハイライト
平均いいねの数
Feeds
回答済み
Write a function called holiday that takes two input arguments called month and day; both are scalar integers representing a month (1-12) and a day (1-31). You do not need to check that the input is valid. The function returns a logical true if the s
%Simplest one - Tested function value = holiday(month,day) if month == 1 && day == 1 value = true; els...
Write a function called holiday that takes two input arguments called month and day; both are scalar integers representing a month (1-12) and a day (1-31). You do not need to check that the input is valid. The function returns a logical true if the s
%Simplest one - Tested function value = holiday(month,day) if month == 1 && day == 1 value = true; els...
約6年 前 | 0
回答済み
Please Help Basics Made Hard
%This will work for sure.. Tested on different test cases function age = day_diff(m1,d1,m2,d2) m = [31 28 31 30 ...
Please Help Basics Made Hard
%This will work for sure.. Tested on different test cases function age = day_diff(m1,d1,m2,d2) m = [31 28 31 30 ...
約6年 前 | 0
回答済み
How do you have a logical operator of true and false as your type but 0 and 1 as your value?
function [out] = eligible(v, q) if v > 88 && q > 88 && (v+q)/2 >= 92 out = true; else out = false; end ...
How do you have a logical operator of true and false as your type but 0 and 1 as your value?
function [out] = eligible(v, q) if v > 88 && q > 88 && (v+q)/2 >= 92 out = true; else out = false; end ...
約6年 前 | 1
回答済み
How to sort a 3 element vector input to scalar output?
function [a,b,c]= sort3(V) if V(1) >= V(2) && V(1) >= V(3) if V(2) >= V(3) c = V(1); b = V(2); a = V(3); ...
How to sort a 3 element vector input to scalar output?
function [a,b,c]= sort3(V) if V(1) >= V(2) && V(1) >= V(3) if V(2) >= V(3) c = V(1); b = V(2); a = V(3); ...
約6年 前 | 0
回答済み
Error: Unexpected MATLAB expression.
function dollar = fare(miles,age) if miles <= 0 dollar = 0; elseif miles > 0 && miles < 1 dollar = ...
Error: Unexpected MATLAB expression.
function dollar = fare(miles,age) if miles <= 0 dollar = 0; elseif miles > 0 && miles < 1 dollar = ...
約6年 前 | 0