Filter löschen
Filter löschen

error using streamline function

1 Ansicht (letzte 30 Tage)
Peter
Peter am 7 Jul. 2015
Kommentiert: Alberto am 9 Sep. 2015
I am trying to plot the stream lines for the velocity field in the attached mat file. The vector field is easily plotted using the command
quiver(X,Y,u,v)
However when I try and use the streamline command
streamline(X,Y,u,v,0.5,0.5)
I get the error:
Error using griddedInterpolant Interpolation requires at least two sample points in each dimension.
When I copy paste the basic example from the matlab documentation the streamline function works fine, but I cannot figure out why it will not work for my vector field.
  1 Kommentar
Alberto
Alberto am 9 Sep. 2015
Hi. Did you solve the problem? I am getting the same error.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Vector Fields finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by