I am trying to write a code that will produce a contour plot of many PIV Data points from DaVis .txt files.
The .txt file has 4 columns of data (X coordinates, Y coordinates, U velocity, V velocity). As of now I have the code reading this file with dlmread skipping the first row. I need the program to reorganize the X column into its own matrix of 173×124, and the other columns to do the same for their own matrixes of the same size. I have the X,Y,U,V matrixes set to empty matrixes that need to be filled.
type B00001.txt;A=dlmread('B00001.txt', '',1,0);X=zeros(173,124);Y=zeros(173,124);U=zeros(173,124);V=zeros(173,124);pcolor(X,Y,U); hold onshading interpcolormap(jet);colorbar
Best Answer