How can i open a file in app designer

42 ビュー (過去 30 日間)
Rida BOUMEDIANE
Rida BOUMEDIANE 2020 年 5 月 10 日
コメント済み: farzad 2020 年 11 月 18 日
i have in my desktop a file inside this file there is 2 files and inside each one another files, i want to use appdesigner to open the first folder and give me the right to open the other file, and in case i didn’t found a file , app designer should give me the right to create a new one based on a template that i have.

回答 (4 件)

Sai Gudlur
Sai Gudlur 2020 年 6 月 11 日
Are you using a radio button?
If you are u can use this code when u click on the button.
[filename,pathname] = uigetfile('*.')% add ur extension post period within parathesis.
fullfilename = fullfile(pathname,filename);
A = xlsread(fullfilename); % if it is a excel file. else use whatever it is.
Your question is pretty vague. if you give more info I might be of some help.
  1 件のコメント
farzad
farzad 2020 年 11 月 18 日
What if I use a push button

サインインしてコメントする。


Rida BOUMEDIANE
Rida BOUMEDIANE 2020 年 6 月 11 日
So i'm using app designer, i'm using a button when i click on the button i should add values giving by a text field in my application in an excisting excel file where there is already rows that are full, so when i click the button the program should check for the last line where there is nothing and add those values there. and everytime i add new values it will go look for the row after where there is no values and add them there in the same excel file

Rida BOUMEDIANE
Rida BOUMEDIANE 2020 年 6 月 11 日
i can add value with this program but i have to choose the row, i want a program that will directly know the empty last row and add the values in that row

Rida BOUMEDIANE
Rida BOUMEDIANE 2020 年 6 月 11 日
here is the interface used
  1 件のコメント
Sai Gudlur
Sai Gudlur 2020 年 6 月 11 日
Try using cellfun.
Example:
x = {1,[],[],[]};
find(~cellfun(@isempty,x))

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by