Mathlab Symbolic Determinat , display issues

  • Thread starter Maxong091
  • Start date
  • Tags
    Issues
In summary: E%3C%2Fmatlab%3E%3C%2Fexpressions%3E%3C%2Fdeterminant%3E%3Ca%20matrix%3E%3C%2Fa%3E%3C%2Fa%3E%3C%2Fexpressions%3E%3C%2Fdeterminant%3E%3C%2Fa%3E%3C%2Fsymbolic%3E%3C%2Ftoolbox%3E%3C%2Fa%3E%3C%2Fa%3E%3C%2F
  • #1
Maxong091
4
0
Hi all,

I am working on a robotics problem and I have to get the determinant of a 3X3 matrix in symbolic form. The expressions are quite complex, Matlab 7.10.0 solves the expression in about 30 seconds but cannot display the answer. I would need to copy and paste this answer into another function. There does not seem to be any way to access this variable either in the command window or by saving it, without crashing the computer.



Basically

D=det(Matrix);

Now the D variable is a 1X1 sym in the workspace but I cannot access it.

Is this because the expression is too large, would Mathelatica do a better job of it?

Thanks
 
Engineering news on Phys.org
  • #2
Maxong091 said:
Hi all,

I am working on a robotics problem and I have to get the determinant of a 3X3 matrix in symbolic form. The expressions are quite complex, Matlab 7.10.0 solves the expression in about 30 seconds but cannot display the answer. I would need to copy and paste this answer into another function. There does not seem to be any way to access this variable either in the command window or by saving it, without crashing the computer.



Basically

D=det(Matrix);

Now the D variable is a 1X1 sym in the workspace but I cannot access it.

Is this because the expression is too large, would Mathelatica do a better job of it?

Thanks

may you write the message you get from matlab?
 
  • #3
Hi,

This is the error message

? Error using ==> mupadmex
Error in MuPAD command:


here in red text a segment of the expression is shown then



Error in ==> sym.disp at 19
allstrs = mupadmex(X.s,0);

Error in ==> sym.display at 17
disp(X)
 
  • #4
What if you had the program solve the manual determinant equation instead:

[tex]a_{1}b_{2}c_{3}+a_{2}b_{3}c_{1}+a_{3}b_{1}c_{2}-a_{3}b_{2}c_{1}-a_{2}b_{1}c_{3}-a_{1}b_{3}c_{2}[/tex]
 
  • #5
If you had maple it would be a lot easier and faster. Matlab's symbolic toolbox is very slow and cumbersome. Or you could try Wolfram Alpha. Works almost as fast as maple (if not faster).

http://www.wolframalpha.com/
 

FAQ: Mathlab Symbolic Determinat , display issues

What is Mathlab Symbolic Determinant?

Mathlab Symbolic Determinant is a function in Mathlab that calculates the determinant of a matrix using symbolic variables instead of numerical values. This allows for more precise and general solutions to problems involving matrices.

How do I use Mathlab Symbolic Determinant?

To use Mathlab Symbolic Determinant, you need to first create a symbolic matrix using the "sym" function. Then, you can use the "det" function to calculate the determinant of the matrix. Make sure to assign the result of the "det" function to a variable so you can use it in your calculations.

What are some common display issues with Mathlab Symbolic Determinant?

One common display issue with Mathlab Symbolic Determinant is when the result is too large or complex to be displayed in a single line. In this case, Mathlab will automatically display the result in a matrix format. Another issue is when there are symbolic variables involved in the calculation, the result may not be simplified and can appear messy. To solve this, you can use the "simplify" function to simplify the result.

Can I save the result of Mathlab Symbolic Determinant for later use?

Yes, you can save the result of Mathlab Symbolic Determinant by assigning it to a variable. The variable will then hold the value of the determinant and you can use it in your future calculations. Just make sure to use the "sym" function when creating the matrix and to assign the result of "det" function to a symbolic variable.

Are there any limitations to using Mathlab Symbolic Determinant?

One limitation of using Mathlab Symbolic Determinant is that it may not always provide a closed-form solution. In some cases, the result may involve special functions or constants that cannot be simplified. Another limitation is that it may take longer to calculate the determinant using symbolic variables compared to numerical values, especially for larger matrices.

Back
Top