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.

回答(1 个)

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

产品

版本

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by