" write for this function such that when I input A, B or C at that position"
Please note: In the function defination, only A is there
agem = mean(A(:,6));
agestd = std(A(:,6));
- Save this function as fun1.m file in separate MATLAB file.
- Once required, call the function from the mainn code or command widow with passing appropriate A vector data.
From the command window, you can verify the same