if I enter into edit text a number 6.67e-2, then in uitable I got this number in form like 667/10000.
So is possible to show this number in form of 6.67e-2?
Thanks for help
Best Answer
It looks as if the table'sColumnFormat property is set torat, but that would require setting the property. It looks like you're using GUIDE, so open up the Property Inspector on the uitable and see what theColumnFormat property is. Set it to an appropriate numeric format.
EDIT TO ADD: sorry, didn't read your initial comment carefully enough. Um...why are you converting to asym to print the number? If you need a symbolic variable somewhere, extract fromUserData.matrix and convert there. Rational display is standard for symbolic variables, so the behavior you're seeing makes perfect sense.
EDIT #2: OK, so it sounds like the actual problem you're trying to solve is: "can I set the formatting so that numbers and strings are both justified the same (either left or right)?" Yes. Just, treat everything as a string:
Don't usesym unless you are actually doing symbolic calculations. It is not a fundamental data type in MATLAB, so these conversions aren't really doing much other than slowing down your code.
Best Answer