matlab script to print data into plain text file :     

    x=-1:.1:1; 
    y=-2:.1:2;
    f(x,y)=1-x^2-y^2
    
I want to print the data into a text file with 3 columns: one for x, one for y and one for f(x, y)=1-x^2-y^2.(There should be 20 data points for x, and 40 for y)



    






    

