Sam Sims - MATLAB Central
photo

Sam Sims


2017 年からアクティブ

Followers: 0   Following: 0

統計

MATLAB AnswersFrom 09/17 to 03/25Use left and right arrows to move selectionFrom 09/17Use left and right arrows to move left selectionTo 03/25Use left and right arrows to move right selectionUse TAB to select grip buttons or left and right arrows to change selection100%
MATLAB Answers

3 質問
0 回答

ランク
105,147
of 297,827

評判
0

コントリビューション
3 質問
0 回答

回答採用率
0.0%

獲得投票数
0

ランク
 of 20,479

評判
N/A

平均評価
0.00

コントリビューション
0 ファイル

ダウンロード
0

ALL TIME ダウンロード
0

ランク

of 159,623

コントリビューション
0 問題
0 解答

スコア
0

バッジ数
0

コントリビューション
0 投稿

コントリビューション
0 パブリック チャネル

平均評価

コントリビューション
0 ハイライト

平均いいねの数

Feeds

表示方法

質問


I am currently trying to write a code that spits out all the prime numbers less than an input, n, that also have a difference of 2. So, 3 and 5, 5 and 7, and 17 and 19 and I also need to put them into a 2 column matrix. This is what I have so far.
tableName = zeros(1,2); n = input('Integer'); a = primes(n) I get a vector of all the prime numbers less than or equa...

7年以上 前 | 1 件の回答 | 0

1

回答

質問


I am trying to build this code to where I can type either YES or NO when asked for the input in line 1, but whenever I type NO, an error pops up saying "Matrix dimensions must agree". I am not sure where I am going wrong.
tail_stinger = input('Has a tail/stinger?','s'); if tail_stinger == 'YES' straight_tail = input('Tail straight like a nee...

7年以上 前 | 1 件の回答 | 0

1

回答