フィルターのクリア

Need Help Coding a Gaussian Problem

4 ビュー (過去 30 日間)
Thomas Leick
Thomas Leick 2021 年 5 月 3 日
回答済み: Doddy Kastanya 2021 年 5 月 5 日
Hi, I am currently trying to code the following gaussian equation:
and my code is seen as below:
But my graphs just don't seem to come out right. The output that I get is this
but the actual output should look like the graph below
I cannot see where I am going wrong. Any help would be greatly appreciated!

回答 (1 件)

Doddy Kastanya
Doddy Kastanya 2021 年 5 月 5 日
You might not be using the correct data for this. For example, in your implementation x_i and x_j are simply numbers. Shouldn't they actually be vectors? Otherwise, there is no need to use the "norm" function.

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by