How to implement the Gaussian radial basis function in MATLAB ?
Show older comments
Hello all, I am dealing with the following optimization problem

where
is a column vector of dimension
,
is also a column vector of dimension
,
is matrix of dimension
,
is
row vector of
and
is the Gaussian radial basis function, where
is the variance.
is a column vector of dimension
,
,
,
is the Gaussian radial basis function, where My query is how to code this Gaussian radial basis function (RBF) ?
Any help in this regard will be highly appreciated.
Accepted Answer
More Answers (1)
If you have the Statistics Toolbox, you can avoid a loop by using pdist2
Lt = 10;
p = rand(Lt,4);
sigma = 1.0;
K=exp(-pdist2(p,p).^2 / 2/sigma^2);
1 Comment
charu shree
on 21 Mar 2023
Categories
Find more on Linear Least Squares in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!