Hi guys, I'm relatively new to the matlab designing process (i.e. making good use of it's vector-based system) I need help producing a matlab code for the following equation:
is there a way to be able to produce it using matrices without the tedious use of for and while loops? or is there no other way?
thank you very much for any help that guys can extend.
Okay I realized that a possible approach would be to use permutations like say for my 3 variables x,y,z I want to make a permutation of their powers from 0 to 2 such that the output would look like this
So, what's the pattern here? The pattern must match certain rules if you'll write a compact equation and did you notice the multiplier count for each term is not constant? The constants (I'm guessing they are constants) from m8 to m19 have only 2 variables in the multiplication while the last 8 have 3. So again what's the pattern here? I think the best you can do is to divide the total formula into 4 parts each for the number of variables in each term (0, 1, 2, 3).
In order to see the structure of the resulting array T123, it is possible to generate it as a symbolic variable in the following way. Type these commands:
Thank you very much, Zorro. Sorry for the noob-ish question, but is it possible to use syms in my code and then eventually replace the variables with actual data from a separate file?