fuzzy logic based frequncy controller

i am not familiar with coding and i need to implement frequency controller using fuzzy logic control in hardware. this controller used to control the switching of power amplifier. i used fuzzy tool box in MATLAB but with arduino i need the code can someone help please.

Given what you have given us:

void setup()
{
    setup_random_hardware();
}

void loop()
{
    wait_for_unknown_input();
    fuzzily_set_frequency_on_random_hardware();
}

I take it you have already googled "arduino fuzzy logic" - right?