How can I obtain the functions parameterStructToVector and parameterVectorToStruct?

2 ビュー (過去 30 日間)
I want to execute the code provided as an example in the following page https://es.mathworks.com/help/deeplearning/ug/solve-partial-differential-equations-with-lbfgs-method-and-deep-learning.html but I am unable to do so since the code relies on the functions parameterStructToVector and parameterVectorToStruct and I am unable to generate them in my computer. How can I get these two functions or replicate them to be able to run the code?

採用された回答

Mahesh Taparia
Mahesh Taparia 2021 年 10 月 11 日
Hi
You can get the function in the example folder. The example path is given in the top right side of this documentation page. Or else you can run the below given command to move to the example directory.
openExample('nnet/TrainPhysicsInformedNeuralNetworkWithLBFGSAndAutoDiffExample')
The example folder contains all the helper functions.
Hope it will help!
  2 件のコメント
Luis Mora Ortiz
Luis Mora Ortiz 2021 年 10 月 16 日
That was exactly what I needed, thank you so much!
yang zhao
yang zhao 2021 年 10 月 19 日
Hi, can I run this example in MATLAB R2020b?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by