필터 지우기
필터 지우기

Changing Cell Format for Excel using MATLAB

조회 수: 22 (최근 30일)
Thulasi Durai Durai Samy
Thulasi Durai Durai Samy 2012년 7월 2일
How do I change cell format of Excel cells to Scientific which I need to plot. I use ActiveX Control as following Commands.
set(Excel.Selection.Font,'ColorIndex',7);
set(Excel.Selection,'HorizontalAlignment',3);
set(Excel.Selection.Interior,'ColorIndex',4);
set(Excel.Selection.Font,'Size',13);
set(Excel.Selection.Font,'bold',1);
if I use set(Excel.Selection.Format,'Scientific');
MatLab or excel does not support. pls help
"Thanks in advance"

채택된 답변

Walter Roberson
Walter Roberson 2012년 7월 2일
It appears to me that you should be setting NumberFormat instead of Format. What you should set it to depends on the details of the display you want.
  댓글 수: 3
Thulasi Durai Durai Samy
Thulasi Durai Durai Samy 2012년 7월 2일
Even tried with set(Excel.Selection.NumberFormat,'Scientific');
Still I am finding error, what next to do
Walter Roberson
Walter Roberson 2012년 7월 2일
set the NumberFormat to '0.0000E+00'

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

추가 답변 (0개)

카테고리

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