How would you define a sine function with the only argument x and parameters a(beginning of interval) b( end of interval) and m ( the number of complete Periods) Where the parameters are in the function definition?
Show older comments
For example I have a parameters a=2 b=6 and m=3. I am not sure how to set up the function with the parameters are in the function definition. The one way I have it set up is f=@(x,a,b,m)sin(x); There is another way to do this where the function starts as f=@(x) where a, b, and m are in the function.
Accepted Answer
More Answers (0)
Categories
Find more on Particle & Nuclear Physics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!