MAT2CLIP

버전 1.1.0.1 (2.53 KB) 작성자: Jiro Doke
Copies the contents of a matrix to the CLIPBOARD.
다운로드 수: 4.6K
업데이트 날짜: 2016/9/1

라이선스 보기

편집자 메모: This file was a File Exchange Pick of the Week

MAT2CLIP(A) copies the contents of 2-D matrix A to the system clipboard. A can be a numeric array (floats, integers, logicals), character array, or a cell array. The cell array can have mixture of data types.
Each element of the matrix will be separated by tabs, and each row will be separated by a NEWLINE character. For numeric elements, it tries to preserve the current FORMAT. The copied matrix can be pasted into spreadsheets.

OUT = MAT2CLIP(A) returns the actual string that was copied to the clipboard.

MAT2CLIP(A, DELIM) uses DELIM as the delimiter between columns. The default is tab (\t).

Example:
format long g
a = {'hello', 123;pi, 'bye'}
mat2clip(a);
% paste into a spreadsheet

format short
data = {
'YPL-320', 'Male', 38, true, uint8(176);
'GLI-532', 'Male', 43, false, uint8(163);
'PNI-258', 'Female', 38, true, uint8(131);
'MIJ-579', 'Female', 40, false, uint8(133) }
mat2clip(data);
% paste into a spreadsheet

mat2clip(data, '|'); % using | as delimiter

인용 양식

Jiro Doke (2024). MAT2CLIP (https://www.mathworks.com/matlabcentral/fileexchange/8559-mat2clip), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R14SP3
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.1.0.1

Updated license

1.1.0.0

Now works with all numeric data types. Added option to specify delimiter character. Updated license.

1.0.0.0