- You are providing a vector as input, but you don't use element-wise operations.
- You don't provide A or fdmax2 as input arguments.
- You attempt to index A, but it is a scalar (and the indices are unlikely to be positive integers).
Unable to find function @(fd)(1/(1+A(fd/fdmax2)^2)) within E:\matlab\bin\hw3.m.
6 views (last 30 days)
Why there is error : Unable to find function @(fd)(1/(1+A(fd/fdmax2)^2)) within E:\matlab\bin\hw3.m. ???
%For 2,4 GHz
Tc2=1/fdmax2;%Coherrence time for 2 GHz
%For 5.25 GHz
Tc5=1/fdmax5;%Coherrence time for 5.25 GHz
%Plot Doppler sprectrum for Model B, 2 GHz
Rik on 24 May 2023
As you can see, the error here is different than what you report.
Did you consider changing your function to have an output argument, and to make sure it doesn't attempt to create a variable with the same name as the function?
There are more issues with your function: