Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

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 vue (au cours des 30 derniers jours)
Vivek R
Vivek R le 26 Août 2018
Clôturé : MATLAB Answer Bot le 20 Août 2021
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 commentaires
Walter Roberson
Walter Roberson le 26 Août 2018
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"

Réponses (1)

Yuvaraj Venkataswamy
Yuvaraj Venkataswamy le 27 Août 2018
  1 commentaire
Walter Roberson
Walter Roberson le 27 Août 2018
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