×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

help:regarding functions in matlab

help:regarding functions in matlab

help:regarding functions in matlab

(OP)
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.

RE: help:regarding functions in matlab

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).

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources