Function calling error(please help!!)
Show older comments
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)
Walter Roberson
on 24 May 2012
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
Find more on Entering Commands in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!