Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
Pratap
Posts:
26
Registered:
12/6/04
|
|
problem with function
Posted:
Jan 15, 2009 3:59 AM
|
|
Hi
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 ------------------------------------------------------------------------
Configuration: MATLAB Version: 7.3.0.298 (R2006b) MATLAB License: 329139 Operating System: Linux 2.6.22.18-0.2-default #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.
|
|
|
|