Bonjour,
je viens d'installer Matlab r2008a sur mon macbook sous max os x snow leopard.
Si j'exécute des petits programme tout simple ça roule.
Par contre je veux éxécuter le prog suivant :
J'ai fait une exécution avec point d'arrêt. Jusqu'à la parti boucle, tout se déroule bien, mais ensuite à "remonté", matlab se ferme et m'envoi ce message d'erreur :
Une idée de ce qui se passe?
Merci!
je viens d'installer Matlab r2008a sur mon macbook sous max os x snow leopard.
Si j'exécute des petits programme tout simple ça roule.
Par contre je veux éxécuter le prog suivant :
clc;
clear all;
%% Factorisation A=LU
% Donnée d'entrée : matrice A et B
% Résultats : ùatrice U, L et B
%% Choix de la matrice A et initialisation
N=4;
A = [1 2 3 4 ; 5 6 7 8 ; 1 3 5 6 ; 5 7 8 10];
B = [ -1 ; 5 ; -12; -13 ];
B0 = B;
U = A;
L = -eye(4);
%% Boucles
for ii= 1:N-1
m = 0;
if U(ii,ii)==0
m = m-1;
while U(m,ii) == 0
m = m+1;
end
for k = ii:N
aux = U(ii,k);
U(ii,k) = U(m,k);
U(m,k) = aux;
end
aux = B(ii);
B(ii) = B(m);
B(m) = aux;
end
if m == 0
deb = ii+1;
else deb = ii+2;
end
for i = deb:N
L(i,ii) = -U(i,ii)/U(ii,ii);
for j=ii:N
U(i,j) = U(i,j)+L(i,ii)*U(ii,j);
end
B(i) = B(i)+L(i,ii)*B(ii);
end
end
%% Remontée
X1 = zeros(N,1);
X1(N,1) = B(N,1)/U(N,N);
for i=N-11
SK = 0;
for k = i+1:N
SK = SK+U(i,k)*X1(k,1);
end
X1(i,1) = (B(i,1)-SK)/U(i,i);
end
%% Impression des résultats
U
L=-L
B
A
L*U
X1
X2=inv(A)*B0
J'ai fait une exécution avec point d'arrêt. Jusqu'à la parti boucle, tout se déroule bien, mais ensuite à "remonté", matlab se ferme et m'envoi ce message d'erreur :
Process: MATLAB [832]
Path: /Applications/MATLAB_R2008a/bin/maci/MATLAB.app/Contents/MacOS/MATLAB
Identifier: com.mathworks.matlab
Version: MATLAB version 7.1 (2.1)
Code Type: X86 (Native)
Parent Process: ??? [1]
Date/Time: 2010-05-09 15:25:38.170 +0200
OS Version: Mac OS X 10.6.3 (10D573)
Report Version: 6
Interval Since Last Report: 37827 sec
Crashes Since Last Report: 4
Per-App Interval Since Last Report: 677 sec
Per-App Crashes Since Last Report: 3
Anonymous UUID: ABAA6938-A91A-4325-A8D8-FF37CAB2513B
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 2
Application Specific Information:
abort() called
Thread 2 Crashed:
0 libSystem.B.dylib 0x927324be __semwait_signal_nocancel + 10
1 libSystem.B.dylib 0x927323a2 nanosleep$NOCANCEL$UNIX2003 + 166
2 libSystem.B.dylib 0x927ad2f2 usleep$NOCANCEL$UNIX2003 + 61
3 libSystem.B.dylib 0x927ce9a8 abort + 105
4 libstdc++.6.dylib 0x93ac6fda __gnu_cxx::__verbose_terminate_handler() + 433
5 libstdc++.6.dylib 0x93ac517a __cxxabiv1::__terminate(void (*)()) + 10
6 libstdc++.6.dylib 0x93ac51ba __cxxabiv1::__unexpected(void (*)()) + 0
7 libstdc++.6.dylib 0x93ac52b8 __gxx_exception_cleanup(_Unwind_Reason_Code, _Unwind_Exception*) + 0
8 libmx.dylib 0x0012b79f void mxThrowException<MathWorks::System::SimpleException>(MathWorks::System::SimpleException const&) + 95
9 libmx.dylib 0x0010633e mxSetErrmsgPrefixFcn + 436
10 libmx.dylib 0x0010647a mxErrMsgIdAndTxt + 42
11 libmx.dylib 0x0012edf6 void std::reverse<mxArray_tag**>(mxArray_tag**, mxArray_tag**) + 1602
12 libmx.dylib 0x0012ee91 void std::reverse<mxArray_tag**>(mxArray_tag**, mxArray_tag**) + 1757
13 libmwm_interpreter.dylib 0x004ca167 inConvertToLHSType + 184941
14 libmwm_interpreter.dylib 0x00627455 __gnu_cxx::__normal_iterator<bailout_info const*, std::vector<bailout_info, utStlAllocator<bailout_info> > >::difference_type __gnu_cxx::operator-<bailout_info const*, bailout_info const*, std::vector<bailout_info, utStlAllocator<bailout_info> > >(__gnu_cxx::__normal_iterator<bailout_info const*, std::vector<bailout_info, utStlAllocator<bailout_info> > > const&, __gnu_cxx::__normal_iterator<bailout_info const*, std::vector<bailout_info, utStlAllocator<bailout_info> > > const&) + 9105
15 libmwm_interpreter.dylib 0x004ca199 inConvertToLHSType + 184991
16 ??? 0x04e5d78b 0 + 82171787
17 libmwm_interpreter.dylib 0x004a0c19 inConvertToLHSType + 15647
18 libmwm_interpreter.dylib 0x004aed4e inConvertToLHSType + 73300
19 libmwm_interpreter.dylib 0x004aeefe inConvertToLHSType + 73732
20 libmwm_interpreter.dylib 0x004aef87 inConvertToLHSType + 73869
21 libmwm_interpreter.dylib 0x004db60c inSetAccelFeatureEnabled(int, mxArray_tag**, int, mxArray_tag**) + 16336
22 libmwm_interpreter.dylib 0x0047614a inRegisterLineNoHook(void (*)()) + 10016
23 libmwm_interpreter.dylib 0x005824db MathWorks::System::FatalException::~FatalException() + 203
24 libmwm_interpreter.dylib 0x0047834e inRegisterLineNoHook(void (*)()) + 18724
25 libmwm_interpreter.dylib 0x00478e22 inRegisterLineNoHook(void (*)()) + 21496
26 libmwm_interpreter.dylib 0x0049f2d8 inConvertToLHSType + 9182
27 libmwm_interpreter.dylib 0x0048380a inTriggerDebugEvent + 2206
28 libmwm_dispatcher.dylib 0x004018f8 Mfh_file::dispatch_fh(int, mxArray_tag**, int, mxArray_tag**) + 188
29 libmwm_interpreter.dylib 0x00492866 inRunLoadObjFunction + 8926
30 libmwm_interpreter.dylib 0x004755b0 inRegisterLineNoHook(void (*)()) + 7046
31 libmwm_interpreter.dylib 0x004776ee inRegisterLineNoHook(void (*)()) + 15556
32 libmwm_interpreter.dylib 0x005824db MathWorks::System::FatalException::~FatalException() + 203
33 libmwm_interpreter.dylib 0x0047834e inRegisterLineNoHook(void (*)()) + 18724
34 libmwm_interpreter.dylib 0x00478e22 inRegisterLineNoHook(void (*)()) + 21496
35 libmwm_interpreter.dylib 0x0049f2d8 inConvertToLHSType + 9182
36 libmwm_interpreter.dylib 0x0048380a inTriggerDebugEvent + 2206
37 libmwm_dispatcher.dylib 0x004018f8 Mfh_file::dispatch_fh(int, mxArray_tag**, int, mxArray_tag**) + 188
38 libmwm_interpreter.dylib 0x00487e74 __constructor_lm_m + 2700
39 libmwm_interpreter.dylib 0x00471de6 inAnonymousFunction + 7914
40 libmwm_interpreter.dylib 0x00472258 inEvalExpWithIsVarFcn + 308
41 libmwbridge.dylib 0x00384259 mnInitializeParser(char const*, char const**) + 333
42 libmwbridge.dylib 0x003847d2 mnParser + 500
43 libmwmcr.dylib 0x003a772b mcrInstance::mnParser() + 39
44 com.mathworks.matlab 0x000028f5 start + 2413
45 libmwmcr.dylib 0x003a557b mcrInstance::GetErrorState() + 139
46 libSystem.B.dylib 0x926f2a19 _pthread_start + 345
47 libSystem.B.dylib 0x926f289e thread_start + 34
Thread 2 crashed with X86 Thread State (32-bit):
eax: 0x0000003c ebx: 0x92732309 ecx: 0xb08fbddc edx: 0x927324be
edi: 0xa0440b10 esi: 0xb08fbe38 ebp: 0xb08fbe18 esp: 0xb08fbddc
ss: 0x0000001f efl: 0x00000247 eip: 0x927324be cs: 0x00000007
ds: 0x0000001f es: 0x0000001f fs: 0x0000001f gs: 0x00000037
cr2: 0x2c8d0020
Binary Images:
[...]
Model: MacBook6,1, BootROM MB61.00C8.B00, 2 processors, Intel Core 2 Duo, 2.26 GHz, 4 GB, SMC 1.51f53
Graphics: NVIDIA GeForce 9400M, NVIDIA GeForce 9400M, PCI, 256 MB
Memory Module: global_name
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x93), Broadcom BCM43xx 1.0 (5.10.131.14.7)
Bluetooth: Version 2.3.1f4, 2 service, 2 devices, 1 incoming serial ports
Network Service: AirPort, AirPort, en1
Serial ATA Device: Hitachi HTS545025B9SA02, 232,89 GB
Serial ATA Device: MATSHITADVD-R UJ-898
USB Device: Built-in iSight, 0x05ac (Apple Inc.), 0x8507, 0x24400000
USB Device: Apple Internal Keyboard / Trackpad, 0x05ac (Apple Inc.), 0x0237, 0x04600000
USB Device: BRCM2070 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0x06100000
USB Device: Bluetooth Module, 0x05ac (Apple Inc.), 0x8218, 0x06130000
Une idée de ce qui se passe?
Merci!