How can I put a vector into one cell in excel?
이전 댓글 표시
So, I have a vector uni=[0 1] and I'm wondering if there's a way to export this vector into a single cell in excel. I actually have multiple vectors such as this and they have different lengths - the longest has 3 values. Ideally when I look the excel file it will display: 0,1 or 0 1 for a cell. Have in mind that I'm trying to run this code for multiple data files which means that not all 'uni' vectors will be the same length. For example: Data 1: uni = [1 0]
Data 2: uni = [2 1 0]
Note that I'm not trying to put those data files together, I just want separate excel files for each of them that contain a single cell that has the 'uni' values.
I'm not sure if this is possible or simple, I'm just curious about it.
채택된 답변
추가 답변 (1개)
Walter Roberson
2018년 9월 9일
0 개 추천
The only way to do this in excel would be to create a character vector from the values and store the character vector. Excel only permits one numeric value per cell.
카테고리
도움말 센터 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!