发布网友 发布时间:2024-07-03 03:48
共2个回答
热心网友 时间:2024-07-09 19:10
如果是web变成那就用table好了;
WINFORM就用个按钮事件吧,在Panel上绘制的。
private void button1_Click(object sender, EventArgs e)
{
int pX = panel1.Width;
int pY = panel1.Height;
Graphics MyGraphics = panel1.CreateGraphics();
Pen pen = new Pen(Color.Red, 1f);
//绘制列
int x = 0;
for (int m = 0; m < 5; m++)
{
MyGraphics.DrawLine(pen, x, 0, x, pY);
x += pX / 4;
}
//绘制行
int y = 0;
for (int n = 0; n < 11; n++)
{
MyGraphics.DrawLine(pen, 0, y, pX, y);
y += pY / 10;
}
}
热心网友 时间:2024-07-09 19:11
把15*4的数据复制到xls文件中保存,然后再matlab中输入