MATLAB: How to nest functions

function

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

Best Answer

Example:
d = @(N) 23.45*(sind((360/365)*(284+N)));
N = 0:20;
B = 98.8;
C = B .* d(N);