Info

This question is closed. Reopen it to edit or answer.

I have a matrix 2250 by 4 which is later then plot into a velocity field using quiver. I am having problems now producing the contour plot can anyone help me plot this.

1 view (last 30 days)
this is my code clear all; close all; clc; fprintf('Applided Fluids Mech. HW2~JM')
fid = fopen('2016 Sept 7 - Vortex 1_0001.txt'); A = textscan(fid,'%n %n %n %n ', 'delimiter', ',', 'headerlines',3); A = cell2mat(A); fclose(fid);
x= A(1:2250 ,1); y= A(1:2250 ,2); u= A(1:2250, 3); v= A(1:2250, 4);
figure quiver(x,y,u,v) hold on
  2 Comments
Johnaton McAdam
Johnaton McAdam on 9 Sep 2016
clear all;
close all;
clc;
fprintf('Applided Fluids Mech. HW2~JM')
fid = fopen('2016 Sept 7 - Vortex 1_0001.txt');
A = textscan(fid,'%n %n %n %n ', 'delimiter', ',', 'headerlines',3);
A = cell2mat(A);
fclose(fid);
x= A(1:2250 ,1);
y= A(1:2250 ,2);
u= A(1:2250, 3);
v= A(1:2250, 4);
figure
quiver(x,y,u,v)
hold on

Answers (0)

This question is closed.

Community Treasure Hunt

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

Start Hunting!