Hi;
Im having this error when i run "fcp" function (detailed below).
??? Attempted to access ASEB(1,1); index out of bounds because size(ASEB)=[0,0].Error in ==> fcp at 15 Vsal(x)=ASEB(i,j);
Working out of the function, all variables load but it seems ASEB is not operating in the function.
Hope someone can help me
function [ Cp ] = fcp( beta,lambda )%FCP Summary of this function goes here
% Detailed explanation goes here
global ASE%ASE matrix loaded in workspace previously
ASEB=(0.0003*beta.^3 -0.0044*beta.^2 -0.0479*beta + 1.0850)*ASE;x=0;for i=1:20; for j=1:10; x=x+1; Vsal(x)=ASEB(i,j); end; end;%como el vector Vsal tambien se reduce en abcisas, habra que multiplicarlo
%de nuevo por otra funcion de B
fB2=(0.0026*beta.^2 -0.1031*beta + 1.2393);Vsal=fB2*Vsal;i=(200/20)*lambda;fix(i);Cp=Vsal(i);end
Best Answer