# A good tutorial of Solve Partial Differential Equations Using Deep Learning (physics informed neural networks)

105 views (last 30 days)
Miraboreasu on 2 Mar 2022
Answered: Akam Aboubakri on 11 Aug 2022
Hello, instead of Python, I want to learn physics informed neural networks in MATLAB. I am using R2020a
Like there is no function called initializeHe, initializezeros, etc
I found this tutorial, but I just cannot follow it. What I suppoesed is to have a complete code, then I can make breakpoints, etc to learn it. However this one too many jumps, just don't know where I should look.
Can anyone help me?
##### 0 CommentsShow -1 older commentsHide -1 older comments

Sign in to comment.

### Answers (3)

David Willingham on 3 Mar 2022
What version of MATLAB are you using? There is a function called arraydatastore.
Did you try opening the full script in MATLAB and running from there?
>> openExample('nnet/TrainPhysicsInformedNeuralNetworkWithDLTExample')
##### 4 CommentsShow 3 older commentsHide 3 older comments
Joseph Eom on 30 Jul 2022
Edited: Joseph Eom on 30 Jul 2022
This example supporting R2021a. I think you should upgrade recent version of MATLAB. initializeHe,initializeZeros is internal function to run this example.

Sign in to comment.

Edited: SEYED JAMALEDDIN MOSTAFAVI YAZDI on 28 Jun 2022
I had same issue. I resolved it by installing the deep learning toolbox of MATLAB.
https://www.mathworks.com/products/deep-learning.html
##### 0 CommentsShow -1 older commentsHide -1 older comments

Sign in to comment.

Akam Aboubakri on 11 Aug 2022
I had the same problem. I solved it with adding the following functions:
function parameter = initializeHe(sz,numIn,className)
arguments
sz
numIn
className = 'single'
end
parameter = sqrt(2/numIn) * randn(sz,className);
parameter = dlarray(parameter);
end
function parameter = initializeZeros(sz,className)
arguments
sz
className = 'single'
end
parameter = zeros(sz,className);
parameter = dlarray(parameter);
end
##### 0 CommentsShow -1 older commentsHide -1 older comments

Sign in to comment.

### Categories

Find more on Sequence and Numeric Feature Data Workflows in Help Center and File Exchange

R2020a

### Community Treasure Hunt

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

Start Hunting!

Translated by