Duddela Sai Prashanth
Followers: 0 Following: 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