Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
std::exception. Message catalog was not loaded. (error please help)

Subject: std::exception. Message catalog was not loaded. (error please help)

From: salman

Date: 17 Jun, 2012 06:33:09

Message: 1 of 3

Dear friends,

when i copy a code fom one scipt file to another, save it there with a different name and run it, i get this strange error, "Std:expetion, message catalog was not loaded. check file format or contents", one file runs fine but for the othe one, it gives this error.

how can i remove this?

thanks

Subject: std::exception. Message catalog was not loaded. (error please help)

From: salman

Date: 17 Jun, 2012 08:08:07

Message: 2 of 3

"salman " <salmanabdullah9@gmail.com> wrote in message <jrjtn5$rl3$1@newscl01ah.mathworks.com>...
> Dear friends,
>
> when i copy a code fom one scipt file to another, save it there with a different name and run it, i get this strange error, "Std:expetion, message catalog was not loaded. check file format or contents", one file runs fine but for the othe one, it gives this error.
>
> how can i remove this?

here is my code,

function loopint
t=0:.00000001:.0005;
t1=0:.00000001:.0005;
s=[1,0,0,0,0,0,0,0,0];
dd=(t1(end)-t(1))/length(t1);
k=1*pi/(.000004);
td1=.00007;
td2=td1+.000002;
k2=1*pi/.00000002;
tr1=.0002;
tr2=tr1+.00000002;
tl1=.00009;
tl2=tl1+.00000002;
k_l=1*pi/.00000002;
tu1=.0003;
tu2=tu1+.00000002;
k_u=3*1*pi/.00000002;
zeros1d=td1/dd;
zeros1d=round(zeros1d);
onesd=(td2-td1)/dd;
onesd=round(onesd)
zeros2d=(t1(end)-td2)/dd;
zeros2d=round(zeros2d)
zeros1r=tr1/dd;
zeros1r=round(zeros1r);
onesr=(tr2-tr1)/dd
onesr=round(onesr);
zeros2r=(t1(end)-tr2)/dd;
zeros2r=round(zeros2r)
zeros1l=tu1/dd;
zeros1l=round(zeros1l)
onesl=(tl2-tl1)/dd;
onesl=round(onesl)
zeros2l=(t1(end)-tl2)/dd;
zeros2l=round(zeros2l)
zeros1u=tu1/dd;
zeros1u=round(zeros1u)
onesu=(tu2-tu1)/dd;
onesu=round(onesu)
zeros2u=(t1(end)-tu2)/dd;
zeros2u=round(zeros2u)
a=640000;
x=linspace(-a,a,161);
del=(1/(sqrt(2*pi)*a))*exp(-3*(x./a).^2);
del=del/sum(del);
k_g=[0,0,k,0,k2,0,0,0,0,0];
k_l=[0,0,0,0,0,0,k_l,0,k_u,0];
%------------------------------------
nod = 10;
disconti(1)=t(1);
disconti(2)=td1;
disconti(3)=td2;
disconti(4)=tr1;
disconti(5)=tr2;
disconti(6)=tl1;
disconti(7)=tl2;
disconti(8)=tu1;
disconti(9)=tu2;
disconti(10)=t(end);
%------------------------------------
 for n=1:length(x) % loop over del
  y0(1) = 1.0;
  y0(2) = 0.0;
  y0(3) = 0.0;
  y0(4) = 0.0;
  y0(5) = 0.0;
  y0(6) = 0.0;
  y0(7) = 0.0;
  y0(8) = 0.0;
  y0(9) = 0.0;
  tstart=disconti(1);
  tout=tstart;
  yout=y0';
  for h=2:nod % loop over time intervals
    tfinal = disconti(h);
    t=tstart:dd:tfinal;
    k_g_h=k_g(h);
    k_l_h=k_l(h);
    [T,y]= ode45(@(t,y)systemee(t,y,x(n),k_l_h,k_g_h),t,y0);
    nt = length(t);
    tout = [tout, t(2:nt)];
    size(yout)
    size(y(2:nt,:))
    yout=[yout, y(2:nt,:)'];
    y0(1)=y(nt,1);
    y0(2)=y(nt,2);
    y0(3)=y(nt,3);
    y0(4)=y(nt,4);
    y0(5)=y(nt,5);
    y0(6)=y(nt,6);
    y0(7)=y(nt,7);
    y0(8)=y(nt,8);
    y0(9)=y(nt,9);
    tstart = tfinal;
  end
  G_c3(:,:,n)=yout(:,:); % store solution of complete time interval
 end
 for a=1:9
     for b=1:length(t1)
         G_c3(a,b,:)= (squeeze(G_c3(a,b,:))).*del';
     end
 end
 
 save G_c3
function dydt = systemee(t,y,del,k_l_h,k_g_h)
dydt=zeros(numel(y),1);
gamma12=0;
gamma=0;
gamma13=0;
gamma23=0;
size(t)
dydt(1)=1*gamma*y(3)+1j*k_g_h.*(y(8)-y(5));
dydt(2)=1*gamma*y(3)+1j*k_l_h.*(y(9)-y(6));
dydt(3)=-2*gamma*y(3)-1j*k_l_h.*(y(9)-y(6))-1j*k_g_h.*(y(8)-y(5));
dydt(4)=1j*k_g_h.*y(9)-1j*k_l_h.*y(5)-1j*(del-del).*y(4)-gamma12*y(4);
dydt(5)=1j*k_g_h.*(y(3)-y(1))-1j*k_l_h.*y(4)-1j*del*y(5);
dydt(6)=1j*k_l_h.*(y(3)-y(2))-1j*k_g_h.*y(7)-1j*(del+gamma23)*y(6);
dydt(7)=-1j*k_g_h.*y(6)+1j*k_l_h.*y(8)+1j*(del-del)*y(7)-gamma12*y(7);
dydt(8)=-1j*k_g_h.*(y(3)-y(1))+1j*k_l_h.*y(7)+1j*(del+gamma13)*y(8);
dydt(9)=-1j*k_l_h.*(y(3)-y(2))+1j*k_g_h.*y(4)+1j*(del+gamma23)*y(9);
>
> thanks

Subject: std::exception. Message catalog was not loaded. (error please help)

From: Torsten

Date: 18 Jun, 2012 07:59:38

Message: 3 of 3

I don't know whether that's the reason for the error, but for the
array disconti, it must hold
disconti(1) < disconti(2) < ... < disconti(10).
This is not the case for your settings above (check tr and tl).

Best wishes
Torsten.

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us