How to Plot data in excel sheet using MATLAB ?

조회 수: 152 (최근 30일)
Divyesh pandav
Divyesh pandav 2021년 11월 14일
댓글: Divyesh pandav 2021년 11월 16일
OUTPUT I WANT
I want this chart using matlab...!!
xlswritefig function not allowed ..!!
  댓글 수: 3
Divyesh pandav
Divyesh pandav 2021년 11월 16일
@Rik hope now, all clear.!!
Rik
Rik 2021년 11월 16일
Flags are used to attract the attention of site administrators. Please use comments to clarify what you mean and how that differs from the suggested solution.

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2021년 11월 16일
To create the bar chart inside the excel file, you will need to use the ActiveX interface to talk to Excel on MS Windows (will not work on Mac or Linux)
There are two approaches.
One approach is to create a graph at the MATLAB level, and convert the graph to an image, and insert that image into the excel file. See https://www.mathworks.com/help/matlab/matlab_external/example-reading-excel-spreadsheet-data.html#bqfirb9 for an example.
The other approach is to use the ActiveX interface to send VBA plotting commands to Excel. See an example at https://www.mathworks.com/matlabcentral/answers/463285-plots-in-excel-sheets-using-matlab#answer_376014
  댓글 수: 1
Divyesh pandav
Divyesh pandav 2021년 11월 16일
@Walter Roberson sir , can u write for single variable
Exmple data in Image..!!

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

KSSV
KSSV 2021년 11월 15일
Your excel file has no much data. You can read the data from excel file into workspace using readtable.
T = readtable('test.xlsx') ;
You can use the table to plot what you want.,
  댓글 수: 8
Rik
Rik 2021년 11월 16일
So you want to use Matlab to create a bar chart in your excel file? Why not do that in excel directly?
Divyesh pandav
Divyesh pandav 2021년 11월 16일
@Rik yes sir, its take too much time , for long data that's why i need,

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by