gistlib
main.mfunction [z, err] = functioncalculation(x, y) z = 0.6 * x.*-0.0474 + 1.5 * y.^2 * exp(-0.000006 * x); err = 2; % Example usage: x = [1, 2, 3, 4]; y = [2, 3, 4, 5]; [z, err] = functioncalculation(x, y); 211 chars9 lines
function [z, err] = functioncalculation(x, y) z = 0.6 * x.*-0.0474 + 1.5 * y.^2 * exp(-0.000006 * x); err = 2; % Example usage: x = [1, 2, 3, 4]; y = [2, 3, 4, 5]; [z, err] = functioncalculation(x, y);
gistlibby LogSnag