![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/34817452_1724901771289_DEF.jpg)
Cade
Followers: 0 Following: 0
Estadística
1 Pregunta
0 Respuestas
CLASIFICACIÓN
240.495
of 297.016
REPUTACIÓN
0
CONTRIBUCIONES
1 Pregunta
0 Respuestas
ACEPTACIÓN DE RESPUESTAS
0.0%
VOTOS RECIBIDOS
0
CLASIFICACIÓN
of 20.419
REPUTACIÓN
N/A
EVALUACIÓN MEDIA
0.00
CONTRIBUCIONES
0 Archivos
DESCARGAS
0
ALL TIME DESCARGAS
0
CLASIFICACIÓN
of 157.725
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
Pregunta
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 meses hace | 2 respuestas | 0