NEED URGENT HELP !!!!!!!!!!!!!PLEASE IT'S FOR AN EXAM
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MELIGA NAGA VINCENT THEOPHANE
am 18 Feb. 2022
Kommentiert: MELIGA NAGA VINCENT THEOPHANE
am 18 Feb. 2022
I want to compute the homegenous matrix and Jacobian of a robot.i've already wrote this but i want to test it . i want to read joint's DH value form a xlsx file but in that xlsx fie it's also sym variable and i want to read it as sym value. That's the fie i want to import as you see. i use readmatix but show me
DH = readmatrix('DH.xlsx');
theta = DH(2:length(DH),4);
d=DH(2:length(DH),3);
alpha = DH(2:length(DH),2);
a =DH(2:length(DH),1);
![Result after importation](https://www.mathworks.com/matlabcentral/answers/uploaded_files/898735/Result%20after%20importation.png)
![EXCEL file](https://www.mathworks.com/matlabcentral/answers/uploaded_files/898740/EXCEL%20file.png)
0 Kommentare
Akzeptierte Antwort
Arif Hoq
am 18 Feb. 2022
have a look here
[number,str,all]=xlsread('Book4.xlsx');
for col=5:2:size(all,2)
rowidx=find(number(:,col)==0);
all(rowidx+1,:)=[];
end
DH=all;
theta = DH(2:length(DH),4);
d=DH(2:length(DH),3);
alpha = DH(2:length(DH),2);
a =DH(2:length(DH),1)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Spreadsheets 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!