How can I perform a mathematical operations on all elements of a column of numerical data imported from Excel in Matlab?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Neha Sinha
am 11 Feb. 2019
Kommentiert: Star Strider
am 11 Feb. 2019
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?
0 Kommentare
Akzeptierte Antwort
Star Strider
am 11 Feb. 2019
Try this:
D = xlsread('YourFile.xlsx');
D1new = D(:,1)/sqrt(3);
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Import from MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!