フィルターのクリア

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 Center および File ExchangeCharacters and Strings についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by