How to nest functions?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Walter Roberson
2016-1-14
Example:
d = @(N) 23.45*(sind((360/365)*(284+N)));
N = 0:20;
B = 98.8;
C = B .* d(N);
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!