You must be getting error at line number 34 in your code. That's because your 'ra' is a 1x11 double type matrix which (after dividing by fa0) you are tying to assign to a single element of ydot. Again in the next line you are trying to assign 'rae' which is a 1x11 complex double type matrix to single element of ydot.
Try changing your code like this:
This will give you a ydot matrix of 11x4 complex double type matrix (after the transpose) in which your third and fourth columns will have repeated real values. you can extract the values out of ydot as per your requirement in the script where you are calling this function.