필터 지우기
필터 지우기

How to save a vector v=[1 2 3 4]; into a text file. How to do that?

조회 수: 2 (최근 30일)
Gemalyn Apostol
Gemalyn Apostol 2016년 10월 17일
댓글: Gemalyn Apostol 2016년 10월 17일
How to save a vector v=[1 2 3 4]; into a text file. How to do that? [Hint use save] in matlab?

채택된 답변

KSSV
KSSV 2016년 10월 17일
v=[1 2 3 4];
save('myfile.txt','v','-ascii')
  댓글 수: 5
KSSV
KSSV 2016년 10월 17일
If no error pops...in the folder you are working....a txt file called data will be created with vector v in the file.
Gemalyn Apostol
Gemalyn Apostol 2016년 10월 17일
Sir how about this one? can you help me with this?
Given A = [ 1 120; 1 130; 2 140; 3 180; 3 160 ]
B = [ 1 91; 2 92; 3 93 ]
targetdata = [ 1 120 91; 1 130 91; 2 140 92; 3 180 92; 3 160 93 ]
Let be given three points A, B, C in the Euclidean plane. Determine the fourth point D on the line BC so that AD is orthogonal to BC.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Characters and Strings에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by