필터 지우기
필터 지우기

how to save series of values under one excel file MATLAB?

조회 수: 2 (최근 30일)
Usman
Usman 2015년 12월 22일
댓글: Usman 2015년 12월 23일
I want to store pitch, yaw and roll for each frame in excel file. eg: if 144 frames then excel stores 144 values of pitch,yaw and roll in one excel file. The code which i tried stores only first frame value.
[pitch,yaw,roll] = ComputePose(PDM_49,test_shape(:));
filename='data.xlsx';
header = {'Pitch', 'yaw ','roll'};
xlswrite(filename,header);
[~,~,input] = xlsread(filename);
new_data = {pitch,yaw,roll};
output = cat(1,input,new_data); % Concatinate your new data to the bottom of input
xlswrite('data',new_data);

답변 (1개)

Walter Roberson
Walter Roberson 2015년 12월 22일
[pitch,yaw,roll] = ComputePose(PDM_49,test_shape(:));
header = {'Pitch', 'yaw ','roll'};
new_data = num2cell([pitch(:), yaw(:), roll(:)]);
output = [header; new_data];
xlswrite('data',output);
  댓글 수: 1
Usman
Usman 2015년 12월 23일
sir you ammendment code still gives the value of single frame. I want to store all values in excel file

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

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by