how to import matrix using load

조회 수: 8 (최근 30일)
vaya putra
vaya putra 2019년 10월 15일
답변: Raúl Ibáñez Couoh 2019년 10월 15일
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);

채택된 답변

Raúl Ibáñez Couoh
Raúl Ibáñez Couoh 2019년 10월 15일
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개)

카테고리

Help CenterFile Exchange에서 STL (STereoLithography)에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by