how to give range of values to variable
12 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
please tell me how to code below statments.
for i from 0 to 255
s[i]:=i
0 comentarios
Respuestas (2)
Walter Roberson
el 25 de Feb. de 2016
for i = 0 : 255
s(i+1) = i;
end
Or
s = 0 : 255; %no loop needed
2 comentarios
Ver también
Categorías
Más información sobre Loops and Conditional Statements en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!