Web app not able to perform xlsread/xlswrite
4 views (last 30 days)
Show older comments
Giulio Francesca on 29 Jul 2018
Commented: srinu siliveru on 21 Mar 2019
I've compiled a web application with matlab web app compiler. In my code I use both .mat files and .xlsx files which are located in the same folder. While my program is able to access .mat files without any error, xlsx files are not accessible returning the error: Excel couldn't find the specified file. However, when run in matlab environment I do not receive this error. The error appears when I try to run the app from my web server.
Titus Edelhofer on 30 Jul 2018
have you tried to first build up the full path to the Excel file? So instead of only the file name provide the full path?
srinu siliveru on 15 Mar 2019
hi Titus, can you please explain with a example.
Titus Edelhofer on 15 Mar 2019
Edited: Titus Edelhofer on 15 Mar 2019
I meant something like
data = xlsread('C:\Data\myfile.xlsx');
data = xlsread('myfile.xlsx');
Will it works if i want to use the .exe file in another sytem because path will change
can you please help me how to handle that.
thanks in advance
Find more on MATLAB Web App Server in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!