Write text to excel file including variable

I want to write "dp= 30'pitch diameter" in the A1 cell of the excel file named peq.xls, where 30 is the variable.

Answers (1)

TRY:
dp = 30
t=table(dp,'RowNames',{'pitch diameter'})
writetable(t,'peq.xls')

Products

Release

R2016a

Asked:

on 3 Nov 2018

Edited:

on 3 Nov 2018

Community Treasure Hunt

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

Start Hunting!