Hi,
As frequency will be a vector. You will have to calculate a efficiency vector corresponding to a particular "K" value for the particular range of frequency.
This can be achieved in the following way:
%frequency is a vector of the range you want to pass
plot(frequency, calculate_efficiency_vector(0.2, frequency))
hold on
for K = [0.175 0.15 0.125 0.1 0.075 0.05]
plot(frequency, calculate_efficiency_vector(K, frequency))
end
hold off
function efficiency = calculate_efficiency_vector(K, frequency)
efficiency = %write the function here, in terms of K and frequency
end
Hope this helps you resolve your query!