write a function to sum some elements

I'm trying to solve this
Write a function called square_wave that computes the sum sin 2

Answers (1)

total = 0;
for K = 1 : 10
total = total + some value
end

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Tags

Asked:

on 31 May 2015

Answered:

on 1 Jun 2015

Community Treasure Hunt

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

Start Hunting!