well i finally got it to work. here is the code if anyone wants to know:
square.m
clf
%trying to find a square wave
time = [0:0.01:10];%gives the increments of measuring for time
T=10;%the amount of time it takes to run through the run
omega=2*pi*1/T;
fsummation=0;%starting parameter for the...
putting the comma in, just changes the error say: "??? Error: File: C:\MATLAB7\work\square.m Line: 16 Column: 27
Missing variable or function." so that doesn't seem to change the problem all that much
square.m
clf
%trying to find a square wave
time = [0:0.01:10];
T=10;
omega=2*pi*1/T...
i have a project and every time i run it it gives me this "??? Error: File: C:\MATLAB7\work\square.m Line: 15 Column: 26
Missing variable or function." i have spent many days and i still can't figure it out. there are three parts to the script the main (square.m), the function (fsum), and the...