MATLAB Answers

how to import matrix using load

16 views (last 30 days)
hi
i want to write in "vtu file"
i have some data point and pressure
first of all i write point in matrix (30603x6) in vtu using script below
but what i have is different matrix, in vtu file
anyone give me suggestion?
filename = ( '3layer.vtu' );
load point.txt
load pressure.txt
fid = fopen (filename, 'w' );
fprintf (fid, '% 16.0f% 16.0f% 16.0f% 16.0f% 16.0f% 16.0f \ n' , point);

  0 Comments

Sign in to comment.

Accepted Answer

Raúl Ibáñez Couoh
Raúl Ibáñez Couoh on 15 Oct 2019
You must be create a .mat file in the same diectory as your .m file and use load command to load the Example
Matrix = load('Example.mat');
This store the matrix from .mat file in the variable Matrix.

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Products


Release

R2017b

Translated by