Info

This question is closed. Reopen it to edit or answer.

Spreadsheet Link Ex resets pathdef to default

1 view (last 30 days)
Liam Kelly
Liam Kelly on 30 Sep 2011
Closed: MATLAB Answer Bot on 20 Aug 2021
This is a strange problem. I am using the Spreadsheet Link EX toolbox to run some user defined functions. When I start Matlab from Excel (using the toolbar button "Start Matlab")the pathdef of matlab gets reset to factory default when it opens. This is annoying because I am building a tool for non-matlab users and have created some user defined functions that I don't store in the matlabroot directory. So when I call the user functions after opening matlab they aren't on the search path and the VB macro does nothing.
Anyone else have this problem? Any work-arounds?
I am using Excel 2010, Matlab v 7.11.0 (R2010b). OS is Windows 7 (64-bit)
Liam
  1 Comment
Mark Deans
Mark Deans on 6 Jan 2014
I have a similar problem. The userpath is set properly, but when MATLAB starts from Spreadsheet Link EX, it ignores the pathdef.m file that is in the userpath directory. The MATLAB session started from Spreadsheet Link EX does write to that file if you add to the path and save, but does not seem to read it at startup. This seems like a bug to me.
I am using Excel 2010 and MATLAB 2013a with Windows 7 (64-bit).

Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!