0
How to Read a Text File and Plot it in a Surface 3d Plot

Hello, I am a complete begginner and I am passing for some troubles. I would like to start reading a text file which is filled with 512x512 float points matrix and after use it as the Z axis of the surface plot. Below follows my code. For some reason is shown that the file cannot be read. Could someone help me?

M = fscanfMat("C:\\Users\\Home\\Desktop\\Data.txt");
t=[0:64:511];
plot3d(t,t,M)


Scilab 25-03-21, 9:11 a.m. Henphys
0

I would like to start reading a text file which is filled with 512x512 float points matrix and after use it as the Z axis of the surface plot.

iMessage Download

30-03-21, 12:27 p.m. LeonardMontano


0
I am also learning these things... Did you try reading in the text file by importing it as a "Table"? Using mlab or by importing your txt file in python assigning the array to a variable? https://domyessay.onl/coursework-writing/
11-05-21, 2:17 p.m. marianellefson


Log-in to answer to this question.