Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8843697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:17:46+00:00 2026-06-14T11:17:46+00:00

Hi everyone I wrote this code using MatLab and I need to design a

  • 0

Hi everyone I wrote this code using MatLab and I need to design a GUI as the following

  • Draw Button: to draw the path.
  • Scan Button: If I want to take an image using “Image Acquisition”
  • Static Text : to show the angels,number of objects and the centers (Individual)
  • Axes : To show the image after the processing
    And is there any reference I should read to help me??

The Code:

im1=imread('C:\Users\Shadow Of Dark\Desktop\sample','jpeg');

im1=rgb2gray(im1);

level=graythresh(im1)

bwfram3=im2bw(im1,level);

bw2=bwareaopen(bwfram3,20);

se=strel('disk',10);

bw2=imclose(bw2,se);

bw2=imcomplement(bw2);

[labeled,numObjects] = bwlabel(bw2,4);

imshow(labeled);

numObjects

info=regionprops(labeled,'all');

centers=cat(2,info.Centroid)

hold on;

angles=zeros(1,numObjects);

j=0; 

for i=1:2:2*numObjects-2

  l = line([centers(i) centers(i+2)],[centers(i+1) centers(i+3)]);

  set(l,'linewidth',3,'color','r');

  angles(1,i-j)= atan((centers(i+1) - centers(i+3))/(centers(i) - centers(i+2)))*180/pi;
  j=j+1;
end

angles
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T11:17:47+00:00Added an answer on June 14, 2026 at 11:17 am

    Firstly, draw in a paper (or Enterprise Architect, …) what you want and where in the layout. Afterwards, think of the sequence diagram of your process and write it in a paper. Later, divide your code into some functions, related to the steps you have described. Then, create a GUI with the GUI Editor in MATLAB and add a graphical element to your layout. Finally, link each function you have described to your graphical element (read the official help to do it).

    (Alternatively, you can do it quicker mixing all these steps, but it is not an appropriate way of doing it).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

everyone. This is a piece of code from using sqlite in android tutorial: return
I recently setup custom rotational banners on my blogger using this code I come
everyone. I'm having a memory allocation error using ctypes and a C code. I'm
Hello every one I have wrote a simple code in html5 in which I
everyone! new to here and been pondering about this myself for some times with
I need to write some code that deals with generating and manipulating multivariable polynomials.
EDIT: OK It turns out this code was working (more or less) I'd left
Profiling shows this is the slowest segment of my code for a little word
I wrote some AES encryption code in C# and I am having trouble getting
HI, everyone. I am new to Python and am using Python 2.5 on CentOS.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.