the problem was really with the line max = Math.Max(min, min); , i have replaced it and got the correct output of fuzzy MAX_MIN operation on two matrices ..
the code
//Fuzzy MAX-MIN Composition Code
public string[,] Max(string[,] matrix1, string[,] matrix2, int order)
{
string[,] fuzzy = new string[order, order];
double max = 0.0000;
double min;
for (int i = 0; i < order; i++)
{
for (int j = 0; j < order; j++)
{
fuzzy[i, j] = "0.0000";
for (int k = 0; k < order; k++)
{
max = Convert.ToDouble(fuzzy[i, j]);
min = Convert.ToDouble(fuzzy[i, j]);
min =Math.Min(Convert.ToDouble(matrix1[i, k]), Convert.ToDouble(matrix2[k, j]));
if(min > max)
{
fuzzy[i, j] = Convert.ToString((String.Format("{0:0.0000}", min)));
}
else
{
fuzzy[i, j] = Convert.ToString((String.Format("{0:0.0000}", max)));
}
//max = Math.Max(0.0000, min);
//fuzzy[i, j] = Convert.ToString((String.Format("{0:0.0000}", min)));
}
}
}
return fuzzy;
}
solved why the last row and column of array is zero?