How to nest functions?
1 view (last 30 days)
Show older comments
Sergey Dukman
on 14 Jan 2016
Commented: Sergey Dukman
on 14 Jan 2016
Hello, I have a function. Then I want to create another function and use the value of the first function to compute the second one. How can I "connect" these functions?
Regards, Sergey
2 Comments
Accepted Answer
Walter Roberson
on 14 Jan 2016
Example:
d = @(N) 23.45*(sind((360/365)*(284+N)));
N = 0:20;
B = 98.8;
C = B .* d(N);
More Answers (0)
See Also
Categories
Find more on Loops and Conditional Statements 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!