Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Hi I am trying to fminsearch to optimize couple of parameters, however when I give the start I get the following error Optimization running. Error running optimization. XLSREAD unable to open file 'C:\Users\GJ computatio​nal\Deskto​p\Book2.xl​sx'. File

1 回表示 (過去 30 日間)
Vivek R
Vivek R 2018 年 8 月 26 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hi I am trying to fminsearch to optimize couple of parameters, however when I give the start I get the following error
Optimization running. Error running optimization. XLSREAD unable to open file 'C:\Users\GJ computational\Desktop\Book2.xlsx'. File 'C:\Users\GJ computational\Desktop\Book2.xlsx' not found.
  2 件のコメント
Walter Roberson
Walter Roberson 2018 年 8 月 26 日
We as outsiders have no reason to expect that file exists.
You should not call xlsread instead of an optimization. You should call it before you optimize and pass the data into your function. Search mathworks.com for "parameterizing functions"

回答 (1 件)

Yuvaraj Venkataswamy
Yuvaraj Venkataswamy 2018 年 8 月 27 日
  1 件のコメント
Walter Roberson
Walter Roberson 2018 年 8 月 27 日
It is not clear how this relates? The question at hand has to do with importing one file.

Community Treasure Hunt

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

Start Hunting!

Translated by