Email: [email protected]

This Portal for internal use only!

  • My Download
  • Checkout
Application Package Repository Telkom University
All Categories

All Categories

  • IBM
  • Visual Paradigm
  • Adobe
  • Google
  • Matlab
  • Microsoft
    • Microsoft Apps
    • Analytics
    • AI + Machine Learning
    • Compute
    • Database
    • Developer Tools
    • Internet Of Things
    • Learning Services
    • Middleware System
    • Networking
    • Operating System
    • Productivity Tools
    • Security
    • VLS
      • Office
      • Windows
  • Opensource
  • Wordpress
    • Plugin WP
    • Themes WP
  • Others

Search

0 Wishlist

Cart

Categories
  • Microsoft
    • Microsoft Apps
    • Office
    • Operating System
    • VLS
    • Developer Tools
    • Productivity Tools
    • Database
    • AI + Machine Learning
    • Middleware System
    • Learning Services
    • Analytics
    • Networking
    • Compute
    • Security
    • Internet Of Things
  • Adobe
  • Matlab
  • Google
  • Visual Paradigm
  • WordPress
    • Plugin WP
    • Themes WP
  • Opensource
  • Others
More Categories Less Categories
  • Get Pack
    • Product Category
    • Simple Product
    • Grouped Product
    • Variable Product
    • External Product
  • My Account
    • Download
    • Cart
    • Checkout
    • Login
  • About Us
    • Contact
    • Forum
    • Frequently Questions
    • Privacy Policy
  • Forum
    • News
      • Category
      • News Tag

iconTicket Service Desk

  • My Download
  • Checkout
Application Package Repository Telkom University
All Categories

All Categories

  • IBM
  • Visual Paradigm
  • Adobe
  • Google
  • Matlab
  • Microsoft
    • Microsoft Apps
    • Analytics
    • AI + Machine Learning
    • Compute
    • Database
    • Developer Tools
    • Internet Of Things
    • Learning Services
    • Middleware System
    • Networking
    • Operating System
    • Productivity Tools
    • Security
    • VLS
      • Office
      • Windows
  • Opensource
  • Wordpress
    • Plugin WP
    • Themes WP
  • Others

Search

0 Wishlist

Cart

Menu
  • Home
    • Download Application Package Repository Telkom University
    • Application Package Repository Telkom University
    • Download Official License Telkom University
    • Download Installer Application Pack
    • Product Category
    • Simple Product
    • Grouped Product
    • Variable Product
    • External Product
  • All Pack
    • Microsoft
      • Operating System
      • Productivity Tools
      • Developer Tools
      • Database
      • AI + Machine Learning
      • Middleware System
      • Networking
      • Compute
      • Security
      • Analytics
      • Internet Of Things
      • Learning Services
    • Microsoft Apps
      • VLS
    • Adobe
    • Matlab
    • WordPress
      • Themes WP
      • Plugin WP
    • Google
    • Opensource
    • Others
  • My account
    • Download
    • Get Pack
    • Cart
    • Checkout
  • News
    • Category
    • News Tag
  • Forum
  • About Us
    • Privacy Policy
    • Frequently Questions
    • Contact
Home/Matlab/Create an extra row in a table that show the means of all columns (but without any extra headings)

Create an extra row in a table that show the means of all columns (but without any extra headings)

PuTI / 2025-07-04
Create an extra row in a table that show the means of all columns (but without any extra headings)
Matlab News

Hello, I have a table that I have created and display it in text area

This is my code:
params = ["ROI_L";"ROI_C";"ROI_R"];
tbl = table(params,FWHMX,FWHMY,FWHM2D,CenInt);
str = formattedDisplayText(tbl);
str = regexprep(str,'</?strong>’,”);
ReportMessage(app,str); % My own function, see below
At the bottom I have attempted to add the means of each column by doing this:

% Get Means
M = varfun(@mean, tbl, ‘InputVariables’, @isnumeric);
M1=table2cell(M)
M1=[{‘Mens:’},M1]
str = formattedDisplayText(M1)
str = regexprep(str,'</?strong>’,”);
ReportMessage(app,str); % My own fucntion, see below

But its wrapping and not aligned to the table. The same thing happens if I DONT convert the table to a cell array via (as well as adding exctra headings
M1=table2cell(M)
M1=[{‘Mens:’},M1]
This is how it looks without the table2cell step:

Is there a way in table format to get the means of the columns (but without any column header)

heres my report message function
function ReportMessage(app,msg)
currString=get(app.MessagesTextArea,’Value’);
%currString=[{char(msg)};currString]; %add to top of message box
currString=[currString; {char(msg)}]; %add to bottom of message box
app.MessagesTextArea.Value=currString;
drawnow;
scroll(app.MessagesTextArea,’bottom’);
endHello, I have a table that I have created and display it in text area

This is my code:
params = ["ROI_L";"ROI_C";"ROI_R"];
tbl = table(params,FWHMX,FWHMY,FWHM2D,CenInt);
str = formattedDisplayText(tbl);
str = regexprep(str,'</?strong>’,”);
ReportMessage(app,str); % My own function, see below
At the bottom I have attempted to add the means of each column by doing this:

% Get Means
M = varfun(@mean, tbl, ‘InputVariables’, @isnumeric);
M1=table2cell(M)
M1=[{‘Mens:’},M1]
str = formattedDisplayText(M1)
str = regexprep(str,'</?strong>’,”);
ReportMessage(app,str); % My own fucntion, see below

But its wrapping and not aligned to the table. The same thing happens if I DONT convert the table to a cell array via (as well as adding exctra headings
M1=table2cell(M)
M1=[{‘Mens:’},M1]
This is how it looks without the table2cell step:

Is there a way in table format to get the means of the columns (but without any column header)

heres my report message function
function ReportMessage(app,msg)
currString=get(app.MessagesTextArea,’Value’);
%currString=[{char(msg)};currString]; %add to top of message box
currString=[currString; {char(msg)}]; %add to bottom of message box
app.MessagesTextArea.Value=currString;
drawnow;
scroll(app.MessagesTextArea,’bottom’);
end Hello, I have a table that I have created and display it in text area

This is my code:
params = ["ROI_L";"ROI_C";"ROI_R"];
tbl = table(params,FWHMX,FWHMY,FWHM2D,CenInt);
str = formattedDisplayText(tbl);
str = regexprep(str,'</?strong>’,”);
ReportMessage(app,str); % My own function, see below
At the bottom I have attempted to add the means of each column by doing this:

% Get Means
M = varfun(@mean, tbl, ‘InputVariables’, @isnumeric);
M1=table2cell(M)
M1=[{‘Mens:’},M1]
str = formattedDisplayText(M1)
str = regexprep(str,'</?strong>’,”);
ReportMessage(app,str); % My own fucntion, see below

But its wrapping and not aligned to the table. The same thing happens if I DONT convert the table to a cell array via (as well as adding exctra headings
M1=table2cell(M)
M1=[{‘Mens:’},M1]
This is how it looks without the table2cell step:

Is there a way in table format to get the means of the columns (but without any column header)

heres my report message function
function ReportMessage(app,msg)
currString=get(app.MessagesTextArea,’Value’);
%currString=[{char(msg)};currString]; %add to top of message box
currString=[currString; {char(msg)}]; %add to bottom of message box
app.MessagesTextArea.Value=currString;
drawnow;
scroll(app.MessagesTextArea,’bottom’);
end table, varfun, formatteddisplaytext MATLAB Answers — New Questions

​

Tags: matlab

Share this!

Related posts

Random Forest with paired observations: how to maintain subject separation
2025-07-08

Random Forest with paired observations: how to maintain subject separation

Why is uiaxes small by default in a uifigure?
2025-07-08

Why is uiaxes small by default in a uifigure?

For the trainNetwork function, progress plots for training are not closing, except if done manually. How do I close it? I have tried close all, close force, close(fig), & more
2025-07-08

For the trainNetwork function, progress plots for training are not closing, except if done manually. How do I close it? I have tried close all, close force, close(fig), & more

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

Categories

  • Matlab
  • Microsoft
  • News
  • Other
Application Package Repository Telkom University

Tags

matlab microsoft opensources
Application Package Download License

Application Package Download License

Adobe
Google for Education
IBM
Matlab
Microsoft
Wordpress
Visual Paradigm
Opensource

Sign Up For Newsletters

Be the First to Know. Sign up for newsletter today

Application Package Repository Telkom University

Portal Application Package Repository Telkom University, for internal use only, empower civitas academica in study and research.

Information

  • Telkom University
  • About Us
  • Contact
  • Forum Discussion
  • FAQ
  • Helpdesk Ticket

Contact Us

  • Ask: Any question please read FAQ
  • Mail: [email protected]
  • Call: +62 823-1994-9941
  • WA: +62 823-1994-9943
  • Site: Gedung Panambulai. Jl. Telekomunikasi

Copyright © Telkom University. All Rights Reserved. ch

  • FAQ
  • Privacy Policy
  • Term