Sparse matrix converter simulation

I am focused on sparse matrix converter simulation these days.Because I want to combine it with Indirect torque control.One day for learning the modulation strategy,one day for creating matlab/simulink based simulation system,and one day for debugging.I use s-function to implement the modulation strategy.It is easy to use,but hard to debug.Because matlab m language is a "weak type language" as compared to c/c++.We do not need to define a variable before we can use it.This mechanism make coding more convenient but at the other side error-prone.So we must be more careful when coding.Actually,debug my code had wasted much of my time.The most stupid error I made is that I defined the zero space vector as v0=[000000],it should be defined as v0=[010101].It is hard to find this error,because the simulation result showed that the output phase to phase voltages seems right when the system is unloaded.But once system operated with three-phase balanced RL load,the phase to phase output voltage becomes awesome.In order to find out what causes the problem,I had to check my code line by line.And finally,it was proved that the zero vector which I had wrongly defined cause it.Now it works fine.Simulation graphs are listed below:
Vdc figure with no loadPhase-to-phase output voltage with no load

Input voltage-current waveform,the input current is amplified by a gain of 10.Output three-phase current waveform

Vdc waveform with RL loadOutput phase-phase voltage with RL load

Simulation parameters:
Three-phase balanced RL load:R=1ohm,L=5e-3H;
Simulation step time:1e-6s;
Modulation frequency:10kHz;
Reference space vector:Vs=200v,f=50Hz

Gold week is over

This gold week is totally a work week for me.And I do have done something meaningful.First is that I make up my mind to make my own E-dictionary.My MSN robot works fine with the dictionary I imported to the database weeks ago,but it can not display phonetic symbols.I did not add phonetic symbols to the words.In this spare gold week,I think I should make it perfect.So I decide to add phonetic symbols to the database.For nearly a whole day's work,I successfully created my E-dictionary database with phonetic symbols.Phonetic symbols are mostly encoded in UTF-8 and Unicode,but the fucking server database is encoded in GBK and gb2312.My dream was nearly come to true!Last thing I can do is that try to persuade the SP to change their database encoding...

This afternoon when I was still in my dorm,I got a phone call from my mother.I have not got my mom's call for a long time actually.As all calls she called me,this is no other call but full of family love and careness.From her words,I know that my elder sister had a operation recently.Something wrong with her breast.She did not told me about this when she called me last week.Oh, god bless this lady...

report over.