Effacer les filtres
Effacer les filtres

Comments in code for orientation not clear

2 vues (au cours des 30 derniers jours)
YASSER
YASSER le 24 Fév 2024
Commenté : YASSER le 25 Fév 2024
Dear Sirs
I've got a matlab code to use for PV parameter estimation
My problem is that the code seems to be not complete or need some specification from me
The author developper write some comments as orientation in order to add inputs but it is vague
Can anyone try to translate the comment or the intention of it ?
% Parameter Extraction from least-square fitting
% Numerical Differentiation is performed using Quasi-Newton Line Search
% ------------------------------------------------------------------------
% ---------------------------Output generated-----------------------------
% res.iter: nIter - Total number of iterations
% res.v: Least Square cost function vector [1 x nIter]
% res.delv: Gradient column vector [1 x nIter]
% res.aold: Parameters [nPara x (nIter + 1)]
% res.dela: Delta paramters [nPara x nIter]
% res.normDelCheck: || dela/a ||_2 [1 x nIter]
% ------------------------------------------------------------------------
% ------------------------------------------------------------------------
% Pragya Sharma, March 30 2017
% ps847@cornell.edu
% ------------------------------------------------------------------------
function [res] = paraExtractLS(par)
% --------------------Set up needs input from user--------------------
% par.sMeas: Measurement data
% ---------- last column: Output variable
% ---------- First to (last - 1) columns: Variables
% par.sMod: Function handle to Model function
% par.a0: Initial parameter input column vector
% par.h: Numerical differentiation step size column vector
% par.mode:
% ---------'QN': Quasi-Newton
% -------------: Can insert your own Numerical Differentiation Method
% par.maxIter: Maximum number of iterations
% par.ls: Line Search Yes or No
% par.tol: Tolerance on converging condition
% --------------------------------------------------------------------
% --------------------------------------------------------------------
% Setting up problem
  2 commentaires
Walter Roberson
Walter Roberson le 24 Fév 2024
The comments describe the expected input par -- it is expected to be a struct with the given fields, sMeas, sMod, a0, h, mode, maxIter, ls, and tol
YASSER
YASSER le 25 Fév 2024
So this mean that the author is expecting from the user to enter these inputs without clarifying what does it mean exactly ?

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Produits


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by