patch(tgx0+[-Nlong -Nlong Nlong Nlong],tgy0+[-Nlati Nlati Nlati -Nlati],'c:','EdgeColor','r','FaceColor','none')
时间: 2024-01-24 12:02:44 浏览: 27
This MATLAB code plots a red square patch with corners at (-Nlong, -Nlati), (-Nlong, Nlati), (Nlong, Nlati), and (Nlong, -Nlati) on a plot with x-axis values in the array tgx0 and y-axis values in the array tgy0. The 'c:' argument specifies a dashed cyan line style for the edge of the patch. The 'EdgeColor' argument sets the color of the patch edge to red, and the 'FaceColor' argument sets the fill color of the patch to none (i.e., transparent).
相关问题
用中文解释patch(tgx0+[-Nlong -Nlong Nlong Nlong],tgy0+[-Nlati Nlati Nlati -Nlati],'c:','EdgeColor','r','FaceColor','none')
这段代码是用来绘制一个矩形边框的。其中,tgx0和tgy0是矩形的四个角点的经度和纬度坐标。[-Nlong -Nlong Nlong Nlong]和[-Nlati Nlati Nlati -Nlati]是用来确定矩形的大小的参数。'c:'表示线条的样式是虚线,'EdgeColor','r','FaceColor','none'则指定边框的颜色为红色,不填充颜色。
最优化问题min||X-FF^(T)X||_{F}^2怎么转换为maxTr(F^(T)XX^(T)F)的
我们可以将原问题表示为:
minimize ||X-FF^(T)X||_{F}^2
将其展开可得:
minimize tr((X-FF^(T)X)^T(X-FF^(T)X))
进一步展开可得:
minimize tr(X^TX - X^TFF^TX - X^TXF^TFX + X^TFF^TFF^TX)
将最后一项中的FF^T看做一个矩阵G,可得:
minimize tr(X^TX - X^TFF^TX - X^TXF^TFX + X^TGX)
我们可以对该式进行求导,令其等于0:
∂tr(X^TX - X^TFF^TX - X^TXF^TFX + X^TGX) / ∂X = 0
化简可得:
X = FG^T
将X的表达式代入原式可得:
maximize tr(F^TXX^TF)
化简可得:
maximize tr(F^TFG^TF)
因此,原问题可以转化为:
maximize tr(F^(T)XX^(T)F)
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)