I want to export my data from app designer ?

22 ビュー (過去 30 日間)
asd asd
asd asd 2023 年 3 月 29 日
コメント済み: Andres Montes 2023 年 4 月 12 日
Hello guys
I want to export my data from app designer ? I know about writetable but i dont know how to use it !!!
Number of outputs alot !!! I want to export output number to exel file
THanks .

回答 (1 件)

Andres Montes
Andres Montes 2023 年 3 月 29 日
Hi, please tell me more about waht you want to do. What I do is use a function called xlswrite as follows:
xlswrite("File.xlsx",var,1,'A1:C2')
Here "File.xlsx" is the name of the file, var is what you want to write on Excel, 1 is the sheet, and 'A1:C2' is the range of cells where the information is going to be written.
It creates a file with that name or edits the file with that specific name (it has to be in the same folder).
I hope this is what you need. I use transferring data between Excel and Matlab a lot.
Also, if you still find trouble with it, continue this thread so I can help you more and other people with the same issue can look up to this. I spent a lot of time researching on how to use these formulas. Also, I don't know if they work in Matlab online, but isnce you are using App Designer, there is no problem.
  2 件のコメント
asd asd
asd asd 2023 年 3 月 30 日
Thanks you for your answering .
I want to export my output to exel or text
Rxtarget2 = app.Rxtarget2EditField.Value ;
Rytarget2 = app.Rytarget2EditField.Value ;
btarget2 = app.btarget2EditField.Value ;
Rbarxtarget2 = 2*Rxtarget2/btarget2 ;
Rbarytarget2 = 2*Rytarget2/btarget2 ;
app.Rbarxtarget2EditField.Value = Rbarxtarget2 ;
app.Rbarytarget2EditField.Value = Rbarytarget2 ;
I want to export Rbarxtarget2 , Rbarytarget2 to exel or text
Thank you
Andres Montes
Andres Montes 2023 年 4 月 12 日
Hi, I think this would work
var=[Rbarxtarget2 , Rbarytarget2];
xlswrite("File.xlsx",var,1,'A1:B1')
That will create or edit an Excel file and change the cells A1 and B1 with your values.
Hope it helps!

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

カテゴリ

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

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by