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

2 vues (au cours des 30 derniers jours)
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?

Réponse acceptée

Star Strider
Star Strider le 11 Fév 2019
Try this:
D = xlsread('YourFile.xlsx');
D1new = D(:,1)/sqrt(3);

Plus de réponses (0)

Catégories

En savoir plus sur Data Import from MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by