how can i make a column from excel data to a matric.
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi,
I have 1:21600 for six degree freedom data in excel. I need to transform the results coordinate (global coordinate) for a specific point and I never used matlab. in the attached pic i discribe exactly what i am looking for.
Please see the attached pic.
0 commentaires
Réponses (1)
KSSV
le 10 Oct 2020
tx = rand(10,1) ;
ty = rand(10,1) ;
tz = rand(10,1) ;
C = [tx ty tz] ;
m = length(tx) ;
A = zeros(4,4,m) ;
for i = 1:m
A(1:3,1:3,i) = eye(3) ;
A(1:3,4,i) = C(i,:) ;
end
3 commentaires
KSSV
le 11 Oct 2020
You have some length for the columns....I have used Rand to create dummy datafor demo. I have taken it'slength tobe 10. This is for demo puprose.
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!