Why do I get the message "Undefined function 'showPointCloud' for input arguments of type 'double'."

5 Ansichten (letzte 30 Tage)
Dear all
When I test the simple code in page (<http://www.mathworks.com/help/vision/ref/showpointcloud.html>) to plot 3D point cloud. I get the message
"Undefined function 'showPointCloud' for input arguments of type 'double'.
Error in test_sphere1 (line 9)
showPointCloud([x(:),y(:),z(:)]);"
Why do I get this, I just use the example code:
close all
clc
clear all
numFaces = 600;
[x,y,z] = sphere(numFaces);
figure;
showPointCloud([x(:),y(:),z(:)]);
title('Sphere with the default color map');
xlabel('X');
ylabel('Y');
zlabel('Z');
Thank you!
  4 Kommentare
forest tracker
forest tracker am 3 Jul. 2016
I got the exactly same question like "Undefined function 'pointCloud' for input arguments of type 'double'." Have you got your problem solved till now?

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Aditya Jain
Aditya Jain am 21 Jan. 2015
What version of MATLAB are you using?
showPointCloud is only available from MATLAB R2014b.
Also as Star mentioned, do you have Computer Vision System Toolbox?
  3 Kommentare
Jianhua Ma
Jianhua Ma am 21 Jan. 2015
I typed the ver command and I find:
Computer Vision System Toolbox Version 6.1 (R2014b)
But "showPointCloud' still cannot work

Melden Sie sich an, um zu kommentieren.


Walter Roberson
Walter Roberson am 3 Jul. 2016
I have tested in R2014b and showPointCloud does work.
If ver('Vision') shows the product installed, it is possible that you do not have it licensed. See what license('test','video_and_image_blockset') returns: it should return 1 if you have the product license. Also try
which -all showPointCloud
if the software is installed but there is no license for it you will probably see a note about no license beside it.

Kategorien

Mehr zu Image Processing and Computer Vision 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!

Translated by