yes, Matlab can help in calculating various parameters for Wireless Sensor Networks, we need to provide required information and calculate using necessary formulas e.g. we are required to calculate cluster head then sensor nodes can be represented by variables and their related parameters like energy available at each can be attached with it then based upon our logic cluster head can be selected. Matlab will help in processing all these kind of information in a convenient way.
yes we can use MATLAB to simulate WSN i have done this by using LEACH. but having less knowledge to be sure that code i have done is according to my requirements or not :(