Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

help:regarding functions in matlab

Status
Not open for further replies.

austinpowers

Electrical
Joined
Oct 21, 2005
Messages
25
Location
US
i am using a function in my program
but i am getting an error saying that statement is incomplete
when i am calling that function in the program.


i called a function s like this in my mainprogram

[newseq1,newseq2]=
s(seq1,seq2,T0,A,B,Mt,MAXTIME,area,N,M);

i wrote this s function in a seperate matlab file s.m
and the first line in that file is
function [newseq1, newseq2] = s(seq10,seq20,T0,A,B,Mt,MAXTIME,area,N,M)

error that i am getting


??? Error: File: C:\MATLAB701\work\s.m Line: 12 Column: 1
This statement is incomplete.

Error in ==> mainprogram at 18
[seq1,seq2]=s(seq1,seq2,T0,A,B,Mt,MAXTIME,area,N,M);

i checked the syntax of the function also , but everything seems to be right , i dont know whats the problem.
can anyone help me with this.
 
You must give us the exact first twelve lines. You have stated that there is both a problem and not a problem (by saying tha everything seems to be right).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top