フィルターのクリア

How can I plot the graphs of matrices?

3 ビュー (過去 30 日間)
Emin Kursat Dogray
Emin Kursat Dogray 2020 年 12 月 23 日
回答済み: Gouri Chennuru 2020 年 12 月 27 日
Hello.
I'm just learning MATLAB. How can I graph a function that contains a matrix? Sorry about any inconveince.
For example;
A=[2 1;1 2]; %defining matrix A
b=[1;-1]; %defining matrix b
c=2; %defining c
f=@(x) 0.5*transpose(x)*A*x - transpose(b)*x + c ; %defining function f
x=[0;0]; %selecting a starting point
I want to see the global minimum and maximum.

回答 (1 件)

Gouri Chennuru
Gouri Chennuru 2020 年 12 月 27 日
Hi,
You can make use of fplot function available in MATLAB in order to plot the function or expression.
In order to find the global maximum and global minimum you can refer to this link
Hope this helps!

カテゴリ

Help Center および File ExchangeGraph and Network Algorithms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by