Creating a table with syms
Show older comments
Hi I am trying to display a table with a 2x2 sym matrix that is the following:
% matrix = [I4_1,I4_2;I4_3,I4_4];
%2017.36.56.png)
When I create a table with the matrix, it displays as follows:
% table([I4_1;I4_3],[I4_2;I4_4]);
%2017.39.38.png)
The only way I came arround is to convert syms to char arrays:
% t1 = table([cellstr(char((I4_1)))],[[cellstr(char((I4_2)))]],'RowNames',["Enable = 5V"]);
% t1.Properties.VariableNames = ["Q2_VBE = min","Q2_VBE = max"];
% t2 = table([[cellstr(char((I4_3)))]],[[cellstr(char((I4_4)))]],'RowNames',["Enable = 0V"]);
% t2.Properties.VariableNames = ["Q2_VBE = min","Q2_VBE = max"];
% VR3 = [t1;t2]
%2017.40.01.png)
I want to know if there is a better way to display syms on tables, because personally I don't how functions look in plain text
Accepted Answer
More Answers (0)
Categories
Find more on Conversion Between Symbolic and Numeric in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!