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/
 
Posted June 2024 - 15 years after starting this class. I have learned a whole lot. To get to the short course on making your stock car, late model, hobby stock E-mod handle, look at the index below. Read all posts on Roll Center, Jacking effect and Why does car drive straight to the wall when I gas it? Also read You really have two race cars. This will cover 90% of problems you have. Simply put, the car pushes going in and is loose coming out. You do not have enuff downforce on the right...
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...
I'm trying to decide what size and type of galvanized steel I need for 2 cantilever extensions. The cantilever is 5 ft. The space between the two cantilever arms is a 17 ft Gap the center 7 ft of the 17 ft Gap we'll need to Bear approximately 17,000 lb spread evenly from the front of the cantilever to the back of the cantilever over 5 ft. I will put support beams across these cantilever arms to support the load evenly
Back
Top