can someone help me create function with 2 inputs that creates a single output?
์กฐํ ์: 4 (์ต๊ทผ 30์ผ)
์ด์ ๋๊ธ ํ์
I have been asked to create the following:
Create a function called Ex7b with 2 inputs (n and m) and a single output. Write the function so the output is the sum of the sets of n numbers between 1 and m. for example if n=4 and m=100:
?????? = [1 + 2 + 3 + 4 5 + 6 + 8 + 9......97 + 98 + 99 + 100]. The function should round m to the nearest multiple of n.
I have looked at all the info on creating functions, but have no idea on where to start with this one.
Thanks
๋๊ธ ์: 0
์ฑํ๋ ๋ต๋ณ
Stephan
2019๋
3์ 1์ผ
Hi,
start reading here and work through the examples given:
Best regards
Stephan
๋๊ธ ์: 4
์ถ๊ฐ ๋ต๋ณ (0๊ฐ)
์ฐธ๊ณ ํญ๋ชฉ
์นดํ ๊ณ ๋ฆฌ
Help Center ๋ฐ File Exchange์์ Logical์ ๋ํด ์์ธํ ์์๋ณด๊ธฐ
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!