toolbox_graph
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
when I try to use toolbox_graph to read .wrl file using read_wrl I have the error message in reshape function size arguments must be real integer the error line is reshape(face,length(face)/7)+1 because of /7 how can i fix this error? thanks
0 commentaires
Réponses (1)
Leepakshi
le 28 Fév 2025
Hi,
To fix the error, ensure that the length of face is a multiple of 7 before using it in the reshape function. Use integer division to avoid non-integer size arguments:
% Check if the length of 'face' is a multiple of 7
if mod(length(face), 7) ~= 0
error('The length of face is not a multiple of 7. Please check your data.');
end
% Proceed with reshaping using integer division
face_reshaped = reshape(face, [], 7) + 1;
It should resolve the issue.
0 commentaires
Voir également
Catégories
En savoir plus sur Resizing and Reshaping Matrices dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!