Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

create function that performs the following computation

1 visualización (últimos 30 días)
Joe anson
Joe anson el 3 de Oct. de 2018
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
S=N = 1+1/2+1/3+1/4+.........1/N
Σ
K =1

Respuestas (1)

KALYAN ACHARJYA
KALYAN ACHARJYA el 3 de Oct. de 2018
function sum_result=sum1(n)
sum1=0;
for i=1:n
sum1=sum1+1/n;
end
end
Same can be done by using while loop also. It someone using indexing, it would be better.\
Learn Matlab by doing

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by