Getting - Matrix dimensions must agree, using surf

5 visualizzazioni (ultimi 30 giorni)
>> Paving
??? Error using ==> surface
Matrix dimensions must agree.
Error in ==> C:\MATLAB6p1\toolbox\matlab\graph3d\surf.m
On line 68 ==> hh = surface(varargin{:});
Error in ==> D:\Matlab\MATLAB6p1\work\Paving.m
On line 38 ==> surf(X,Y,Z)

Risposte (1)

Walter Roberson
Walter Roberson il 25 Mag 2022
When you call surf(X, Y, Z) in your very old release, the number rows in Z must match the number of rows in Y and the number of columns in Z must match the number of columns in X. However in your code, X, Y, Z are all vectors.
surf() can never be used to turn a set of scattered points into a surface.
  7 Commenti
William Blanch
William Blanch il 26 Mag 2022
Thank You, but what I need is an .stl file so that I can create a part of it in Solidworks. Can you get an .stl file from a patch?
Walter Roberson
Walter Roberson il 26 Mag 2022
https://www.mathworks.com/matlabcentral/fileexchange?q=patch2stl

Accedi per commentare.

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by