2009/07/21

save pictures in matlab using MATLAB ja builder

Saving a picture in Matlab is just a piece of cake~we could use both relative and absolute path to point the directory where we want to put the pictures to be saved. 

However, when I compiled my matlab files today  into Java .jar file via Matlab JA builder and tried to run it in Java, it said that 'can not save files to dir'.

Those matlab files would save some pictures to local directory after some calculation, and the path names I used in it is absolute path. I've tested it for many many times under Matlab environment and it worked well, but the problem popped up when it comes to the Java environment. 

I was about to give up when I finally tried to use absolute path instead of relative one. Thanks god it works! I don't know the trick in it but anyway I could continue my work. 

2009/07/15

Summary of SEA (Copied from my original sina blog)

(The source is in Svante's lecture notes and presentations)

(lecNotes 1.1)


SEA formulation:
1. Subdivide the investigated structure into SUBSYSTEMS
2. The power balance equation(conservation of energy, and steady state is considered)


Coupling power proportionallity
'(1.3) states that the net energy flow is proportional to the diffence in energy per mode in connected subsystems'

page 2-4: C is a property of only the considered connections and the elements in this connection. any third element elsewhere in the structure won't change C, (but of course the energy balance.)

SEA parameters, using them flexibly!
P_dis = eta*omega*E = eta*omega*n*e_hat = M*e_hat
P_coup = eta_coup * omega *(E1 - E2) = eta_coup * omega * n *(ehat1 - ehat2) = C (ehat1-ehat2)


ROOM

1, Check the coincidence frequencies!
2, If necessary, reduce the unknowns by assuming that Pin = Ehat*M in the first room.