Roweida Bawab
Followers: 0 Following: 0
Statistics
0 Questions
2 Answers
RANK
251,663
of 292,798
REPUTATION
0
CONTRIBUTIONS
0 Questions
2 Answers
ANSWER ACCEPTANCE
0.00%
VOTES RECEIVED
0
RANK
of 19,940
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANK
of 147,963
CONTRIBUTIONS
0 Problems
0 Solutions
SCORE
0
NUMBER OF BADGES
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Feeds
Write a function called picker that takes three input arguments called condition, in1 and in2 in this order. The argument condition is a logical. If it is true, the function assigns the value of in1 to the output argument out, otherwise, it assigns
This is how I solved it function out = picker (condition, in1, in2) if condition == true out = in1; else out = in2; ...
4 years ago | 0
Calculate taxi fare by giving multiple inputs and single output
function fare = taxi_fare(d, t) d = ceil(d); t = ceil(t); fare = 5 + (d-1)*2 + t*0.25 end
4 years ago | 0