Estadística
0 Preguntas
8 Respuestas
CLASIFICACIÓN
98.737
of 302.001
REPUTACIÓN
0
CONTRIBUCIONES
0 Preguntas
8 Respuestas
ACEPTACIÓN DE RESPUESTAS
0.00%
VOTOS RECIBIDOS
0
CLASIFICACIÓN
of 21.487
REPUTACIÓN
N/A
EVALUACIÓN MEDIA
0.00
CONTRIBUCIONES
0 Archivos
DESCARGAS
0
ALL TIME DESCARGAS
0
CLASIFICACIÓN
of 178.011
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
I need a program to check prime numbers
n = 17; % Change the number to test if n <= 1 disp('Not a Prime Number'); else prime = 1; for i = 2:sqrt(n...
3 días hace | 0
n th Fibonacci number with function
function fib = fibonacciSeries(N) fib = zeros(1,N); if N >= 1 fib(1) = 0; end if N >= 2 ...
3 días hace | 0
how can I count the number of elements on a vector?
v = [-5, 10, 0, 8, -2, 15, -7]; count = 0; for i = 1:length(v) if v(i) > 0 count = count + 1; end end ...
3 días hace | 0
how do i reverse a vector
v = [10, 20, 30, 40, 50]; n = length(v); for i = 1:n rev(i) = v(n - i + 1); end disp('Reversed vector:'); disp(r...
3 días hace | 0
how to sum all elements of one vector?
v = [10, 20, 30, 40, 50]; sumValue = 0; for i = 1:length(v) sumValue = sumValue + v(i); end disp(['Sum of all ele...
3 días hace | 0
How to return the maximum value of a vector without using the built in function max(x)?
v = [12, 45, 7, 89, 34, 56]; largest = v(1); for i = 2:length(v) if v(i) > largest largest = v(i); end ...
3 días hace | 0
Odd and even numbers
function evenOdd(n) if mod(n,2) == 0 disp('The number is Even'); else disp('The number is Odd'); ...
3 días hace | 0
Write a function to calculate the area of a circle
function area = circleArea(r) area = pi * r^2; end
3 días hace | 0
