

I'm still running R2012b, so I can't confirm this different behavior. If you explicitly specify independent variables vars, then the solver uses the same order to return the solutions. In R2012b (and likely earlier) the documentation differs from that of R2013a in a way that seems relevant to your issue. If you look at the actual code for solve.m (type edit solve in your command window) and examine the sub-function called assignOutputs (line 190 in R2012b) you'll see that it makes a call to sort and that there's a comment about lexicographical order. alphabetical ( symvar does the same, even though it doesn't say so, by making calls to setdiff).

The help for sym/symvar indicates that it returns variables in lexicographical order, i.e. As per the documentation for solve, sym/symvar is used to parse the equations in the case where you don't supply the names of output variables. I believe that it's alphabetical based on the ASCII values of the variable names in your equations. Note that I quote the answer, but that I will not put it in a quote block to enhance readability: Even though it was given as an answer to a different question. I actually found an answer by which appears to answer this question fully. I hope this may be helpful to my problem asked above.ģ5.3k 7 7 gold badges 40 40 silver badges 90 90 bronze badges I think if 2008a can make it, why can't 2012b. Unfortunately, my R2008a doesn't have the symbolic math toolbox (I've been trying reinstallment many times, doesn't work). I found these yesterday and it seems so weird to me: The toolbox provides functions in common mathematical areas such as calculus, linear algebra, algebraic and ordinary differential equations, equation simplification, and equation manipulation.

You can create, run, and share symbolic math code using the MATLAB ® Live Editor.

Symbolic Math Toolbox™ provides functions for solving, plotting, and manipulating symbolic math equations. Work from MATLAB You can access the Symbolic Math Toolbox functionality directly from the. (Release 2008a) October 2008 Online only Revised for Version 5.0 (Release 2008a+). Symbolic Math Toolbox™ User’s Guide R2013a. LTE-M Downlink Reference Example: Model the Release 13 (Cat-M1) and Release 14 (Cat-M2) LTE-M downlink physical channels and signal Communications Toolbox Wireless Waveform Generator App: Create, impair, visualize and export modulated waveforms. Can I control the order of output for MATLAB symbolic expressions?
