Bryce Imbriale
Followers: 0 Following: 0
Estadística
6 Preguntas
0 Respuestas
CLASIFICACIÓN
122.338
of 295.486
REPUTACIÓN
0
CONTRIBUCIONES
6 Preguntas
0 Respuestas
ACEPTACIÓN DE RESPUESTAS
0.0%
VOTOS RECIBIDOS
0
CLASIFICACIÓN
of 20.236
REPUTACIÓN
N/A
EVALUACIÓN MEDIA
0.00
CONTRIBUCIONES
0 Archivos
DESCARGAS
0
ALL TIME DESCARGAS
0
CLASIFICACIÓN
of 153.912
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 have to switch the max and min elements in a vector and assume vec = ceil(rand(1, 10)*100) is a vector containing 10 random generated integers. The script i have to provide will swap the maximum and the minimum element in the vector.
I don't even know where to start, any help? Example: vec=[ 16 98 96 49 81 15 43 92 80 96], you scri...
alrededor de 6 años hace | 3 respuestas | 0
3
respuestasPregunta
I must assume that I have a two dimensional array named twoD. Using iteration (for) and conditionals (if and/or switch), I have to separate twoD into two vectors evenNum and oddNum
a. evenNum contains all of the even numbers in twoD b. oddNum contains all of the odd numbers in twoD any help?
alrededor de 6 años hace | 0 respuestas | 0
0
respuestasPregunta
I have to find the maximum element in a two dimensional array and replace it with 0.
I don't even know where to start. I am also given an example: given array=[1 2 4 5; 8 -7 5 3; 12 45 1 6], after applying your ...
alrededor de 6 años hace | 1 respuesta | 0
1
respuestaPregunta
I need to iterate through a vector, A, using a while loop. Although, I must replace every negative element with 0 until I reach an element with value 0 or checked all elements in the vector.
I also must use either for or while to solve the problem. Also I am given an example: A=[1 -2 3 -5 4 0 9], then the scripts wi...
alrededor de 6 años hace | 1 respuesta | 0
1
respuestaPregunta
I need to iterate through a vector, A, using a for loop, and create a new vector, B, containing logical values. The new vector should contain true for odd values and false for all other values.
I have to use either for or while to solve this problem and I have been working on it for about a while now and cant seem to fig...
alrededor de 6 años hace | 1 respuesta | 0
1
respuestaPregunta
How would I write a script to solve this problem. Assume that I have a vector named D. Using iteration (for) and conditionals (if and/or switch), separate vector D into four vectors posEven, negEven, posOdd, and negOdd.
***Find the maximum, minimum elements and get the summation and so on, but how would I solve the problem using conditional state...
alrededor de 6 años hace | 1 respuesta | 0