I am getting following error in code: Undefined function 'ctwoD' for input arguments of type 'double'.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Ivy
am 31 Jul. 2021
Kommentiert: Sulaymon Eshkabilov
am 2 Aug. 2021
clc
%coordinates of perspective camera projections
xc = ctwoD(5,10);
yc = ctwoD(10,5);
%coordinates of weak camera perspective
xw = ctwoD(5,10);
yw = ctwoD(10,5);
%plot the transformed points from 2D to 3D
plot (xc,yc, '-5',xw, yw,'-*b',markersize,10);
hleg1 = legend ('x,y 5,10');
xlabel ('5');
ylabel('10');
title ('x,y 5,10');
I am getting following error:
Undefined function 'ctwoD' for input arguments of type 'double'.
Error in CameraModel (line 3)
xc = ctwoD(5,10);
Please help with how to write correct code.
2 Kommentare
Akzeptierte Antwort
Sulaymon Eshkabilov
am 1 Aug. 2021
The fcn ctwoD() in your code is not a MATLAB fcn unless you've created it. If you've created it, make sure it is residing in your MATLAB accessible directory.
You can verify it with:
>> which ctwoD
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Camera Views 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!