c#用chart怎么画横纵坐标均为矩阵时的函数图形 120
程序改编自MATLAB,如下所示figure;plot(Z_h2_gamai,S_sit2_half_gama_i)holdon;plot(Z_h2_gamai_neg,...
程序改编自MATLAB,如下所示 figure; plot(Z_h2_gamai, S_sit2_half_gama_i) hold on; plot(Z_h2_gamai_neg, S_sit2_half_gama_i_neg) plot(Z_h2i, E_s_X2_half_i) plot(Z_h2i, -E_s_X2_half_i);图形为为图一,为内外齿轮接触情况,其中显示了三个截面的接触情况c#中程序如下,要绘图的x、y坐标均为矩阵,其中与MATLAB相对应的矩阵数据已经验证过都相同,但是为什么画出的函数图像不是MATLAB那样的轮廓曲线,如图二最下面有颜色的图 double[,] Z_h2_gamai = new double[2 * N_z_h, N_x_sec_h + 1]; double[,] S_sit2_half_gama_i = new double[2 * N_z_h, N_x_sec_h + 1]; double[,] Z_h2_gamai_neg = new double[2 * N_z_h, N_x_sec_h + 1]; double[,] S_sit2_half_gama_i_neg = new double[2 * N_z_h, N_x_sec_h + 1]; this.chart3.Series.Clear(); Series series3 = new Series(); series3.ChartType = SeriesChartType.Spline; series3.BorderWidth = 2; series3.Points.DataBindXY(Z_h2_gamai, S_sit2_half_gama_i); series3.LegendText = "图" + w; this.chart3.Series.Add(series3); this.chart3.DataBind(); Series series4 = new Series(); series4.ChartType = SeriesChartType.Spline; series4.BorderWidth = 2; series4.Points.DataBindXY(Z_h2_gamai_neg, S_sit2_half_gama_i_neg); //series2.LegendText = "图" + w; this.chart3.Series.Add(series4); //this.chart3.DataBind(); Series series5 = new Series(); series5.ChartType = SeriesChartType.Spline; series5.BorderWidth = 2; series5.Points.DataBindXY(Z_h2i, E_s_X2_half_i); //series2.LegendText = "图" + w; this.chart3.Series.Add(series5); //this.chart3.DataBind(); Series series6 = new Series(); series6.ChartType = SeriesChartType.Spline; series6.BorderWidth = 2; series6.Points.DataBindXY(Z_h2i, E_s_X2_half_i_n); //series2.LegendText = "图" + w; this.chart3.Series.Add(series6); //this.chart3.DataBind();
改了一下程序,把坐标矩阵转置了一下,基本能出轮廓,但是每一行的点连完线后进入下一行的时候,前一行末端点还会连到下一行前端的点去,怎么解决这个问题啊,如图,谢谢 展开
改了一下程序,把坐标矩阵转置了一下,基本能出轮廓,但是每一行的点连完线后进入下一行的时候,前一行末端点还会连到下一行前端的点去,怎么解决这个问题啊,如图,谢谢 展开
展开全部
例如a+=b相当于a=a+b,,,,即把a+b的值再赋值给a
懂了吗看
不懂联系我
懂了吗看
不懂联系我
追问
表示没懂,怎么联系您
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询