Function calling error(please help!!)

I have a function in my code :
[grain_boundaries_SiCinter, average_SiC_Inter, Vol_f_SiC_Inter, inter_loc, DD_inter, label_inter, error_found] = f_inter(Desired_grains_Si3N4, N_inter_gr, grain_boundaries_b, L, M, Gr_per_it1);
which gives an error : " Undefined function or method 'f_inter' for input arguments of type 'double' ".
Please help me to define this function in different ways and please let me know where i am going wrong.
Thanks.

Answers (1)

In a file named f_inter.m put
function [grain_boundaries_SiCinter, average_SiC_Inter, Vol_f_SiC_Inter, inter_loc, DD_inter, label_inter, error_found] = f_inter(Desired_grains_Si3N4, N_inter_gr, grain_boundaries_b, L, M, Gr_per_it1)
% now put the definition of the function here, having it calculate whatever it is supposed to calculate
I doubt any of us have any idea what f_inter() is intended to do so we cannot supply the body of the routine.

Categories

Asked:

on 24 May 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!