![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/17751439_1583705945902_DEF.jpg)
Roweida Bawab
Followers: 0 Following: 0
統計
MATLAB Answers
0 質問
2 回答
ランク
of 157,725
コントリビューション
0 問題
0 解答
スコア
0
バッジ数
0
コントリビューション
0 投稿
コントリビューション
0 パブリック チャネル
平均評価
コントリビューション
0 ハイライト
平均いいねの数
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; ...
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年以上 前 | 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
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
5年弱 前 | 0