The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: problem with function
Replies: 1   Last Post: Jan 15, 2009 5:55 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 26
Registered: 12/6/04
problem with function
Posted: Jan 15, 2009 3:59 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


I have written a function [a,b,c]=myfunc(a1,b1,c1)

inside the function the size and type of a and b is 93x5 and 377x5 the class is double and c is 2x16 with class char.

Now in the main program if I type value of c in the command prompt I get the follwing error.
Segmentation violation detected at Thu Jan 15 09:26:37 2009

MATLAB Version: (R2006b)
MATLAB License: 329139
Operating System: Linux #1 SMP 2008-06-09 13:53:20 +0200 x86_64
GNU C Library: 2.6.1 stable
Window System: The X.Org Foundation (70200000), display :0.0
Current Visual: 0x23 (class 4, depth 24)
Processor ID: x86 Family 15 Model 4 Stepping 7, GenuineIntel
Virtual Machine: Java 1.5.0 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode
Default Charset: UTF-8

Please let me know if I am doing any mistake in the functions.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.