Question: what is difference between vector and scalar in matlab?
Answer: A scalar signal contains a single element. The signal could be a one-dimensional array with one element, or a matrix of size 1-by-1. A vector signal contains one or more elements, arranged in a series.