Estadística
6 Preguntas
0 Respuestas
CLASIFICACIÓN
127.876
of 300.364
REPUTACIÓN
0
CONTRIBUCIONES
6 Preguntas
0 Respuestas
ACEPTACIÓN DE RESPUESTAS
16.67%
VOTOS RECIBIDOS
0
CLASIFICACIÓN
of 20.934
REPUTACIÓN
N/A
EVALUACIÓN MEDIA
0.00
CONTRIBUCIONES
0 Archivos
DESCARGAS
0
ALL TIME DESCARGAS
0
CLASIFICACIÓN
of 168.373
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
Can someone help me convert this if-else statement to a switch statement? Its a homework problem that requires us to answer whether it would be quicker to write it as a switch or as an if-else statement. Im most confused by the for loop at the top.
for i = 1:2000 for j = 1:6 if j == 1 result = 20; elseif j == 2 result = 30; elseif j == 3 result ...
casi 7 años hace | 0 respuestas | 0
0
respuestasPregunta
Can someone help me write this into a series?
S=2*r^3 + 4*r^5 + 6*r^7+ 8*r^9 + ... + (2n)*r^(2n+1)
casi 7 años hace | 3 respuestas | 0
3
respuestasPregunta
how to have variables from one file automatically read into another file
I have variables in file1.m that I want to be automatically transferred to an equation in file2.m. Ive tried using the load tool...
casi 7 años hace | 1 respuesta | 0
1
respuestaPregunta
How to write this summation series?
S=2*r^3 + 4*r^5 + 6*r^7+ 8*r^9 + ... + (2n)*r^(2n+1). Display the sum in the main script with 3 decimal places.
casi 7 años hace | 1 respuesta | 0
1
respuestaPregunta
does anyone know how to rewrite this statement to a switch/case statement? thanks
n=input('Please enter a positive or negative integer: '); if n < -2 || n > 5 disp(n/2) else if n <= 3 ...
alrededor de 7 años hace | 0 respuestas | 0
0
respuestasPregunta
does anyone know how to rewrite this into switch/case statements
n=input('Please enter a positive or negative integer: '); if n < -2 || n > 5 disp(n/2) else if n <= 3 ...
alrededor de 7 años hace | 1 respuesta | 0
