MATLAB Answers

How to make a matrix of all zeros be the same size as a data set being used?

18 views (last 30 days)
I've been playing around with matlab for the last few hours and can't figure it out. I am using quiver and my x,y are staying the same and my v is staying the same just need to make my 'u' into a matrix of all zeros. I keep getting this error "Error using zeros Size vector should be a row vector with real elements." not sure what I am doing wrong. Thanks in advance for any help provided.
  1 Comment
James Tursa
James Tursa on 25 Feb 2021
Please post the code you are currently using. It is hard for us to guess the errors you are making without seeing your code.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by