write a function to sum some elements

2 views (last 30 days)
abdo desoki
abdo desoki on 31 May 2015
Answered: Walter Roberson on 1 Jun 2015
I'm trying to solve this
Write a function called square_wave that computes the sum sin 2

Answers (1)

Walter Roberson
Walter Roberson on 1 Jun 2015
total = 0;
for K = 1 : 10
total = total + some value
end

Categories

Find more on Operating on Diagonal Matrices in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!