How do I pass variable from one function to another
古いコメントを表示
Hi!
How can I make this code work? I can't seem to find a way to pass variable 'v' to a different local function.
Tahnk you!
function [v] = Popup(obj, handles , h_listbox)
parameters=detectImportOptions('Data.xlsx');
v = get(obj,'Value');
disp(v)
set(h_listbox,'String',datestr(readvars('Data.xlsx',parameters,'Sheet',v)))
end
function Listbox(obj,h_popupmenu ,h_8things, handles)
k = get(obj,'Value');
Data = (readmatrix("Data.xlsx","Range",'B2:X32','Sheet', v));
polarhistogram(Data(k,:),16)
end
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で App Building についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!