I am trying to get the Primary Distribution Function and have been using pdf functions to get them. They were working just fine last week but for some reason, they're not this time. I have even tried to use help for pdf and unifpdf and Matlab is telling me that they're undocumented builtin functions. In my code, the errors I am recieving are in lines 38 and 40. I am not sure if its because of an update or not. Would anyone have any solutions to this?
Here is my matlab code:
sigma_x = mean(x.^2)-mu_x^2
sigma_y = mean(y.^2)-mu_y^2
Var_w_x = var_x/(max(x)^2);
row_xy = (E_xy - mu_x*mu_y)/(std_x*std_y)
pdf_x = pdf('Normal',[0:0.1:1], 0, 1)
pdf_y = unifpdf([0:0.1:1], 0, 1)
hNormalized_x = hist_x.Values / sum(hist_x.Values);
cdf_x = cumsum(hNormalized_x);
hNormalized_y = hist_y.Values / sum(hist_y.Values);
cdf_y = cumsum(hNormalized_y);
lin_est = row_xy*(std_y/std_x)*(x - mu_x) + mu_y
plot([0:0.1:1],pdf_x*500);
plot([0:0.1:1],pdf_y*500);
plot(x,lin_est, x(1:500), y(1:500), '.');
[A1,A2] = meshgrid(linspace(-10,10,25)',linspace(-10,10,25)');