Mathlab Symbolic Determinat , display issues

  • Thread starter Thread starter Maxong091
  • Start date Start date
  • Tags Tags
    Issues
AI Thread Summary
A user is encountering issues with MATLAB 7.10.0 when trying to compute the symbolic determinant of a complex 3x3 matrix, as it takes a long time to solve but fails to display the result. The variable representing the determinant is inaccessible in the command window or for saving, leading to computer crashes. The user questions whether the expression's complexity is the cause and considers if Mathematica might handle it better. Suggestions include manually solving the determinant equation or using alternative software like Maple or Wolfram Alpha for faster results. The discussion highlights the limitations of MATLAB's symbolic toolbox for complex calculations.
Maxong091
Messages
4
Reaction score
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
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?
 
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)
 
What if you had the program solve the manual determinant equation instead:

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}
 
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/
 
How did you find PF?: Via Google search Hi, I have a vessel I 3D printed to investigate single bubble rise. The vessel has a 4 mm gap separated by acrylic panels. This is essentially my viewing chamber where I can record the bubble motion. The vessel is open to atmosphere. The bubble generation mechanism is composed of a syringe pump and glass capillary tube (Internal Diameter of 0.45 mm). I connect a 1/4” air line hose from the syringe to the capillary The bubble is formed at the tip...
Thread 'Calculate minimum RPM to self-balance a CMG on two legs'
Here is a photo of a rough drawing of my apparatus that I have built many times and works. I would like to have a formula to give me the RPM necessary for the gyroscope to balance itself on the two legs (screws). I asked Claude to give me a formula and it gave me the following: Let me calculate the required RPM foreffective stabilization. I'll use the principles of gyroscopicprecession and the moment of inertia. First, let's calculate the keyparameters: 1. Moment of inertia of...
Thread 'Physics of Stretch: What pressure does a band apply on a cylinder?'
Scenario 1 (figure 1) A continuous loop of elastic material is stretched around two metal bars. The top bar is attached to a load cell that reads force. The lower bar can be moved downwards to stretch the elastic material. The lower bar is moved downwards until the two bars are 1190mm apart, stretching the elastic material. The bars are 5mm thick, so the total internal loop length is 1200mm (1190mm + 5mm + 5mm). At this level of stretch, the load cell reads 45N tensile force. Key numbers...
Back
Top