photo

Sam Sims


Con actividad desde 2017

Followers: 0   Following: 0

Estadística

MATLAB Answers

3 Preguntas
0 Respuestas

CLASIFICACIÓN
150.070
of 300.813

REPUTACIÓN
0

CONTRIBUCIONES
3 Preguntas
0 Respuestas

ACEPTACIÓN DE RESPUESTAS
0.0%

VOTOS RECIBIDOS
0

CLASIFICACIÓN
 of 21.086

REPUTACIÓN
N/A

EVALUACIÓN MEDIA
0.00

CONTRIBUCIONES
0 Archivos

DESCARGAS
0

ALL TIME DESCARGAS
0

CLASIFICACIÓN

of 171.169

CONTRIBUCIONES
0 Problemas
0 Soluciones

PUNTUACIÓN
0

NÚMERO DE INSIGNIAS
0

CONTRIBUCIONES
0 Publicaciones

CONTRIBUCIONES
0 Público Canales

EVALUACIÓN MEDIA

CONTRIBUCIONES
0 Temas destacados

MEDIA DE ME GUSTA

Feeds

Ver por

Pregunta


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...

más de 8 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

más de 8 años hace | 1 respuesta | 0

1

respuesta