Hi! I'm new into this. I'm writing a function file and I want to be able to input a vector, evaluate each element with the same function and obtain an output that has each element's result. Here is what I'm writing:
function IF=myfunction(P,T)a=1.28+15*(1/P+0.05)+exp(100/T)IF=500+adisplay (IF)end
My inputs are P=[10 20] and T=[30 40] and it has an error saying "error using mrdivide; matrix dimensions must agree".
Best Answer