a single programm for both horizontal and vertical
Afficher commentaires plus anciens
vertical and horizontal allignment
8 commentaires
Walter Roberson
le 4 Août 2022
You should show the outline of the code.
PA
le 10 Août 2022
Walter Roberson
le 10 Août 2022
theta = atand(delta_X/delta_Y);
That should probably be
theta = atan2d(delta_Y, delta_X);
If you stick with atand() then it should be delta_Y/delta_X -- opposited divided by adjacent.
PA
le 11 Août 2022
Walter Roberson
le 15 Août 2022
for i =1: size(patternline, 1)
So i starts at 1
Delta_X = patternline(i-1,2) - patternline(i-1,4);
i started at 1. Delta_X = patternline(1-1,2) - patternline(1-1,4). That is a reference to index (0,2) and index (0, 4). Those indices do not exist
PA
le 15 Août 2022
Image Analyst
le 15 Août 2022
Attach importPattern.m
If you have any more questions, then attach your data and code to read it in with the paperclip icon after you read this:
Réponses (0)
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!