How can I get rid of the error showing "Undefined function 'abs' for input arguments of type 'Interface​.00020846_​0000_0000_​C000_00000​0000046' "?

1 次查看(过去 30 天)
clc(); clear all; exl=actxserver('excel.application') exlwkbk=exl.Workbooks exlfile=exlwkbk.Open([docroot '\Delhi_CodaQ.xlsx']) exlsheet1=exlfile.Sheets.Item('07-09-2011_Ali') data=exlsheet1.Columns.End(2) numrows=data.rows dat_range=['B' num2str(numrows)]
My data is in the B column of excel file '07-09-2011_Ali' which I need to store in a MATLAB variable. The last line of my code is showing error saying Undefined function 'abs' for input arguments of type 'Interface.00020846_0000_0000_C000_000000000046' followed by the line Error in num2str (line 65) xmax = double(max(abs(widthCopy(:)))); How to solve this problem?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Import from MATLAB 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by