How I can pass value array that I already store to another function?

1 回表示 (過去 30 日間)
Farizul Azlan
Farizul Azlan 2020 年 7 月 9 日
回答済み: Prabhan Purwar 2020 年 7 月 17 日
Red = double(image1(:,:,1));
Green = double(image1(:,:,2));
Blue = double(image1(:,:,3));
% Extract Statistical features
% 1] Mean
R_mean = mean(Red(:));
G_mean = mean(Green(:));
B_mean = mean(Blue(:));
% 2] Standard Deviation
R_std = std(Red(:));
G_std = std(Green(:));
B_std = std(Blue(:));
% 3] Skewness
R_skew = skewness(Red(:));
G_skew = skewness(Green(:));
B_skew = skewness(Blue(:));
A = [R_mean G_mean B_mean R_std G_std B_std R_skew G_skew B_skew];
handles.ImgData3 = A;
guidata(hObject,handles);
How to get all the values in A in array?

回答 (1 件)

Prabhan Purwar
Prabhan Purwar 2020 年 7 月 17 日
Hi,
Could you explain more what are you trying to do with handles.ImgData3 = A; and GUI.
You can pass the array as an output argument to a function.
Hope it helps!!

カテゴリ

Help Center および File ExchangeStatics and Dynamics についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by