Info

This question is closed. Reopen it to edit or answer.

Image display with button,calculation and display value with other buttons problem

1 view (last 30 days)
I'm building a GUI and i have stuck and can't find the solution!So i have this figure(the image).First i want the pushbutton1 to do this a=imread('C:\Users\ADMIN\Desktop\canada.bmp'); level=graythresh(a); bw=im2bw(a,level); imgcon=imcontour(bw); and also to return the contoured image in axes2. My second pushbutton2 want to do some calculation T=array2table(imgcon.', 'VariableNames', {'J', 'K'}); totsum=((sum(T.J.^0))*(sum(T.K.^0))); It is very importart to have the table so to calculate some values. and return this value(totsum) in edit text1. Am i doing something wrong or please help me with the coding because i'm new to matlab

Answers (0)

Community Treasure Hunt

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

Start Hunting!