필터 지우기
필터 지우기

How can I perform a mathematical operations on all elements of a column of numerical data imported from Excel in Matlab?

조회 수: 6 (최근 30일)
I have imported 2 columns of numerical data from excel in matlab and I want to divide each element of the first column by sqrt(3), how can that be done in matlab?

채택된 답변

Star Strider
Star Strider 2019년 2월 11일
Try this:
D = xlsread('YourFile.xlsx');
D1new = D(:,1)/sqrt(3);

추가 답변 (0개)

카테고리

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