Hi:
You can create an Origin C function like:
double setmatrixvalue(double x, double y)
{
if (x>y+1)
{
return x^2+y^2;
} else
{
return 0;
}
}
And Call this function in Set Matrix Value like
Cell(i, j) = setmatrixvalue(i, j)
Thanks
Larry
OriginLab Technical Services