I have been trying to solve this problem. To set up a e array[200 by 200] to create some mesh beam diagram. ' However,I keep on receiving this error message:
"??? Undefined function or method 'int' for input arguments of type 'double'." on the integration (int) part no matter how many times I tried.
i tried using quadgk function as searched on the net, but the same message appears.
I wish to obtain numeric integration answer, so I didn't use syms x.
Really appreciate your help !
e=zeros(200); %store the calculated value in e array
rho=sqrt(x^2+y^2); %To generate rho values to sub into e equation
You appear to be attempting to do numeric integration. int() is only for symbolic integration. There are a number of numeric integration routines such as quadgk()
would be the same thing as
which would convert the letter 'x' to double precision and then throw away the result.
MATLAB does not use declarations of type. Dataypes are determined by assignment.