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

14 vues (au cours des 30 derniers jours)
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 commentaire
James Tursa
James Tursa le 25 Fév 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.

Connectez-vous pour commenter.

Réponse acceptée

Bjorn Gustavsson
Bjorn Gustavsson le 25 Fév 2021
Something like this:
u = zeros(size(v));
HTH

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by