![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/34817452_1724901771289_DEF.jpg)
Cade
Followers: 0 Following: 0
統計
MATLAB Answers
1 質問
0 回答
ランク
of 157,776
コントリビューション
0 問題
0 解答
スコア
0
バッジ数
0
コントリビューション
0 投稿
コントリビューション
0 パブリック チャネル
平均評価
コントリビューション
0 ハイライト
平均いいねの数
Feeds
質問
I need to write a code to find numbers divisible by 7 and multiples of 5 from 1500:2700. How do I preallocate line 4 for speed and is my code the most efficient way to solve
result = []; for num = 1500:2700 if mod(num, 7) == 0 && mod(num, 5) == 0 result = [result, num]; end end d...
5ヶ月 前 | 2 件の回答 | 0