The robustness of scale-free networks has attracted increasing attentions recently. It has been shown that scale-free networks are tolerant to random failures but fragile under malicious attacks. However, most existing studies focus on scale-free networks with fixed exponent (around 3) and assortativity (around 0), and the relationship between robustness and these parameters has not been studied systematically. Therefore, in this paper, we study the change of robustness along with different parameters, including scaling exponent and assortativity, of scale-free networks; moreover, the robustness of interdependent networks is also studied. In the experiments, synthetic single scale-free networks with varying scaling exponents are constructed and adjusted to fix assortativity. Several measures are adopted to estimate the robustness of networks under malicious and random attacks. Then, interdependent networks with varying parameters are constructed and their robustness against malicious attacks is studied. The results show that there is a positive correlation between robustness against node attacks and the scaling exponent as well as assortativity, and the positive correlation also exists in interdependent networks.