matlab-将.dat数据自动生成excel文件

clc
clear all
load(‘made2_tx2_tc11_aclr.mat’, ‘result’)
Made=[2 2 ]’;
tx=[2 2 ]’;
CarrierConf=[11111,1001]’;
data = [Made,tx,CarrierConf];
[m, n] = size(data);
data_cell = mat2cell(data, ones(m,1), ones(n,1));
title = {‘Made’,‘tx’, ‘CarrierConf’};
config= [title; data_cell];
s = xlswrite(‘test.xls’, config);
在这里插入图片描述
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_39703212/article/details/109102819