gistlib
other matlab categories
`function` code snippets in matlab
create a matlab function that takes a binary image as input and outputs the vertices of the point of each object closest to the center of the image in matlab
design the function function out = mse_vs_m(x_tr, t_tr, x_te, t_te) that uses all given samples in the split data sets in matlab
design the function function out = mse_vs_m(x_tr, t_tr, x_te, t_te) that uses all given samples in the split data setsand then computes the empirical 5 mse test loss in matlab
design the function function tn= true_negative(sens, spec, prior) that calculates the probability of a negative test to be correct bayes in matlab
function that takes t as an array and the alloy name as a string and returns the thermal conductivity k as an array of the same size as t in matlab
implement a matlab function that takes time , and as inputs and returns acceleration, , velocity, , and displacement, in matlab
unction loss = loss_func(t_hat, t) that computes the empirical loss in matlab
v(t) = 9.2 when t = 20 in matlab
write a function for y(x)=(-0.2x^3+7x^2)e^-0.3x in matlab
write a function to output bootstrap 2's css in matlab
write a functioni = csimpson(f,h) that takes as inputs f an array of function values and h the distance between grid values and computes i the composite simpson’s approximation of the integral in matlab
write a recursive function rec_max(arr,n) to find the maximum of a given vector arr (of length n). don’t use the matlab function max. in matlab
gistlib
by LogSnag