Borrar filtros
Borrar filtros

How to compute a solution with a sum in matlab

3 visualizaciones (últimos 30 días)
Xuefei Sun
Xuefei Sun el 23 de Feb. de 2021
Respondida: Satwik el 4 de Jun. de 2023
My code is like this:
s=0;
for t=h:length(data);
s=s+data(t)*data(t-h)
end
And I need to find h to make s=0

Respuestas (1)

Satwik
Satwik el 4 de Jun. de 2023
s=0;
for h=1:length(data)
for t=h:length(data);
s=s+data(t)*data(t-h)
end
if(s==0)
disp(h);
end
end
Unrecognized function or variable 'data'.

Categorías

Más información sobre Graphics Objects en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by