MATLAB: Can anyone help me on too many arguments

too many input output arguments

Hi
Can anyone help me on this? it is project.mat file
It says too many arguments
load project
T = project(:,1);
V = project(:,2);
B = project(:,3);
E = project(:,4);
plot(T,V);
plot(T,B);
Thanks

Best Answer

Your m-file is not also called project.m is it? Because that could be the problem. Try this:
s = load('project.mat')
project = s.project
T = project(:,1);
V = project(:,2);
B = project(:,3);
E = project(:,4);
plot(T, V, 'b-', 'LineWidth', 2);
plot(T, B, 'r-', 'LineWidth', 2);
grid on;