How can I plot the graphs of matrices?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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.
0 Kommentare
Antworten (1)
Gouri Chennuru
am 27 Dez. 2020
Hi,
In order to find the global maximum and global minimum you can refer to this link
Hope this helps!
0 Kommentare
Siehe auch
Kategorien
Mehr zu Graph and Network Algorithms finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!