Can Matlab write formulas into Excel?
|
|
0
|
|
|
|
Reply
|
lunamoonmoon (258)
|
2/17/2010 6:17:19 PM |
|
Luna Moon <lunamoonmoon@gmail.com> wrote in message <8b202c9b-7138-4948-8e18-7edf0b03a667@o26g2000vbd.googlegroups.com>...
> Can Matlab write formulas into Excel?
similar post, same answer.
http://www.mathworks.com/support/solutions/en/data/1-17PWC/index.html
|
|
0
|
|
|
|
Reply
|
ade100a (320)
|
2/17/2010 7:45:23 PM
|
|
On Feb 17, 2:45=A0pm, "ade77 " <ade1...@gmail.com> wrote:
> Luna Moon <lunamoonm...@gmail.com> wrote in message <8b202c9b-7138-4948-8=
e18-7edf0b03a...@o26g2000vbd.googlegroups.com>...
> > Can Matlab write formulas into Excel?
>
> similar post, same answer.
>
> http://www.mathworks.com/support/solutions/en/data/1-17PWC/index.html
I have read that webpage before, where does it say how to write
formulas into Excel sheet?
|
|
0
|
|
|
|
Reply
|
lunamoonmoon (258)
|
2/17/2010 7:52:39 PM
|
|
Luna Moon <lunamoonmoon@gmail.com> wrote in message <31546e44-2ede-4da9-84a7-5f60380f9323@z25g2000vbb.googlegroups.com>...
> On Feb 17, 2:45 pm, "ade77 " <ade1...@gmail.com> wrote:
> > Luna Moon <lunamoonm...@gmail.com> wrote in message <8b202c9b-7138-4948-8e18-7edf0b03a...@o26g2000vbd.googlegroups.com>...
> > > Can Matlab write formulas into Excel?
> >
> > similar post, same answer.
> >
> > http://www.mathworks.com/support/solutions/en/data/1-17PWC/index.html
>
> I have read that webpage before, where does it say how to write
> formulas into Excel sheet?
just the same concept.
for example you want to write this formula (=POWER(C2,6)) into cell D5;
after you create your activex,
Range = Excel.Range('D5');
Range.Select % make this cell active
Range.Value = '=POWER(C2,6)' %the expression after the first equal sign is a string.
so after your excel file is completely created, if you click the cell "D5" , you will see the formula '=POWER(C2,6)', so whatever is in cell C2, will be raised to the power of 6.
|
|
0
|
|
|
|
Reply
|
ade100a (320)
|
2/17/2010 8:09:06 PM
|
|
> > I have read that webpage before, where does it say how to write
> > formulas into Excel sheet?
>
> just the same concept.
> for example you want to write this formula (=POWER(C2,6)) into cell D5;
>
> after you create your activex,
>
> Range = Excel.Range('D5');
> Range.Select % make this cell active
> Range.Value = '=POWER(C2,6)' %the expression after the first equal sign is a string.
I think it is better to use Range.Formula = '=...' than Range.Value in this case
Yair Altman
http://UndocumentedMatlab.com
|
|
0
|
|
|
|
Reply
|
altmanyDEL (1124)
|
2/17/2010 10:22:03 PM
|
|
"Yair Altman" wrote in message <hlhq6b$5rb$1@fred.mathworks.com>...
> > > I have read that webpage before, where does it say how to write
> > > formulas into Excel sheet?
> >
> > just the same concept.
> > for example you want to write this formula (=POWER(C2,6)) into cell D5;
> >
> > after you create your activex,
> >
> > Range = Excel.Range('D5');
> > Range.Select % make this cell active
> > Range.Value = '=POWER(C2,6)' %the expression after the first equal sign is a string.
>
>
> I think it is better to use Range.Formula = '=...' than Range.Value in this case
>
> Yair Altman
> http://UndocumentedMatlab.com
Is there anyway to apply a formula on an entire range? meaning, apply autofill (same when you double click a cell to apply the formula on an entire column)?
|
|
0
|
|
|
|
Reply
|
hamutaln (1)
|
9/13/2012 8:37:08 AM
|
|
You can do exactly this using the MATLAB Builder EX. You do not need to know Visual Basic to do this. All you need to know is to use MATLAB and Excel. Here is a video, and a link with simple steps:
http://www.youtube.com/watch?v=6W_lBysyC_o&list=PLD1D5C17EE2F7DEAB
http://www.mathworks.com/help/matlabxl/ug/deploying-your-microsoft-visual-basic-application.html;jsessionid=9d924859ad4da3c375eb7f99ca7e
The fun part is that once you have your function out of MATLAB, you don't even need to have a MATLAB installation on your computer. So you can actually run the Excel function, generated by MATLAB, in a computer that does not have MATLAB installed.
Shoot me an email for detailed steps if something is unclear.
|
|
0
|
|
|
|
Reply
|
chetan.rawal (2)
|
4/11/2013 8:20:20 PM
|
|
|
6 Replies
74 Views
(page loaded in 0.327 seconds)
Similiar Articles: create excel plot with MATLAB? - comp.soft-sys.matlabI need an excel plot as well as the data in the new excel file... is there a way to have excel create a plot through MATLAB? I know I can send a MATLAB plot to excel with ... replicating MS Excel percentrank formula - comp.soft-sys.matlab ...... rounddown a la excel .. there must be a better way in matlab but I am > % a ... Method in Matlab - comp.soft-sys.matlab replicating MS Excel percentrank formula ... Need to write huge data to Excel files - comp.soft-sys.matlab ...I was wondering if there is a way to write into '.xlsx' files that support many ... tried to use xlswrite to write a huge matrix to excel ... Exporting Matlab Data to Excel ... How to print (write) an arraw in excel from Matlab in colors ...Is there a way to that from Matlab? Any help on this I would really appreciate, Thanks and ... To do this you have to: 1.) open connection between Matlab and Excel ... Convert a simulink model to excel - comp.soft-sys.matlab ...... plot (no surprise there. I add column y_p to excel with the formula ... Exporting Data from MATLAB and ... how this is done, we will use the following example: Create a ... xlswrite save as pop up with Excel 2007 - comp.soft-sys.matlab ...On computers with Matlab 2008 and Excel 2007 though when I ca... ... Is there a way I can specify which Object library or with Excel version the function should use? Creating Time Stamped Excel File - comp.soft-sys.matlabHi, I am trying to create excel spreadsheets to store data. I know that matlab ... Excel At Excel.Com How to create a timestamp in Excel using formulas. ... any other way ... Excel Data - GUI - comp.soft-sys.matlab... equivalent of a VLOOKUP function as in excel. Is there a ... If you want a GUI, you can easily create that in Excel using ... comp.soft-sys.matlab... comp.soft-sys.matlab Excel ... Excel 2010 and actxserver - comp.soft-sys.matlab... solution, MS Office 2010 has changed the way we ... 287715, just in case somebody posts the fix there ... create excel plot with MATLAB? - comp.soft-sys.matlab Excel 2010 and ... ddepoke, color of text in excel - comp.soft-sys.matlab... Changing the color of the text doesn't do it, is > there another way ... color is ... how to fill boxplot with color - comp.soft-sys.matlab create excel plot with MATLAB ... Video: How to Create an Excel Formula | eHow.comCreating an Excel formula in Microsoft Office is a great way ... key and there's your answer to the sum. If I click in it, my formula's ... easy to create a formula in Excel. My ... Excel - Stanford UniversityMany Excel formulas require the specification ... As is often the case, there is another way to do the same thing in Excel. ... In Excel, as in MATLAB, you may combine ... 7/28/2012 9:20:24 PM
|