a single programm for both horizontal and vertical
이전 댓글 표시
vertical and horizontal allignment
댓글 수: 8
Walter Roberson
2022년 8월 4일
You should show the outline of the code.
PA
2022년 8월 10일
Walter Roberson
2022년 8월 10일
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
2022년 8월 11일
Walter Roberson
2022년 8월 15일
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
2022년 8월 15일
Image Analyst
2022년 8월 15일
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:
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!