![]() ![]() ![]() You can do this with repmat or via indexing an appropriate number of times into the row of this vector. Store the intermediate calculation from mean(A) in a vector and then create a new array the same size as A with replicates of the row vector from the mean.There are at least two ways to remedy this. And now here's the code I'm tempted to write, safely tucked inside the confines of a try statement.Īs you can see, MATLAB does not allow binary operators to work on arrays with different sizes (except when one of the inputs
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |