MATLAB app designer ( import data using a dialog box , working with Text Area and Text Edit Field )

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 พ.ย. 2024

ความคิดเห็น • 25

  • @ChiragPatel-rg3pl
    @ChiragPatel-rg3pl ปีที่แล้ว

    Thanks a lot for the video..

  • @ehsanulbarihome
    @ehsanulbarihome 2 ปีที่แล้ว

    Very useful tutorial ...Thanks :)

  • @mdmurtaza8321
    @mdmurtaza8321 3 ปีที่แล้ว +1

    sir how to use that imported data into another callback as by directly passing it says unrecognised variable

    • @taoyang8784
      @taoyang8784 2 ปีที่แล้ว

      I got the same warning, "Unrecognized function or variable 'file'."

    • @taoyang8784
      @taoyang8784 2 ปีที่แล้ว

      Try the below code:
      [file,path,indx] = uigetfile({'*.xlsx'},'Select the Excel file');
      filename = fullfile(path, file);
      measured_results = importdata(filename)

  • @jailenesilveri6106
    @jailenesilveri6106 3 ปีที่แล้ว

    Great video. Thank you!

  • @preetmalviya4869
    @preetmalviya4869 3 ปีที่แล้ว

    Very simply done, thanks.

  • @MrDROPITHOT
    @MrDROPITHOT 2 ปีที่แล้ว

    How can u show the APP Info in Command Window?

  • @amianifineug1353
    @amianifineug1353 10 หลายเดือนก่อน

    THANK YOU please how run code matlab from designer interface

  • @louis2416
    @louis2416 2 ปีที่แล้ว

    can anyone explain, how to save those inputs into the workspace?

  • @njohnston071
    @njohnston071 3 ปีที่แล้ว +1

    How would you get a database to read in from say the data explorer?

    • @HVE
      @HVE  3 ปีที่แล้ว

      This link may help you: se.mathworks.com/help/database/ug/databaseexplorer-app.html

    • @njohnston071
      @njohnston071 3 ปีที่แล้ว

      @@HVE got the solution it was a reference that wasn't long enough to include the condition I needed thank you for helping me

  • @laur2768
    @laur2768 3 ปีที่แล้ว

    If I click cancel when I opened the file chooser, apps crash and give me the following error:
    *Error using importdata*
    *Unable to open file*
    What to do in this case?

    • @HVE
      @HVE  3 ปีที่แล้ว

      That is probably because you need the file path in the next lines of your code. in that case define a parameter and set it to 0 originally. only if there is a file path change that parameter to 1. put he rest part of your code in an if function with the condition that if that parameter is 1, run the rest part of your code where the file path is needed. I don't know if this help or not but you may try it.

  • @shridevisandiramourty7167
    @shridevisandiramourty7167 3 ปีที่แล้ว

    Very helpful. But unfortunately , even after choosing "All files" option, only the MATLAB files are available to be opened and not the text or csv files... Do you happen to know how to fix this? Thanks in advance

    • @HVE
      @HVE  3 ปีที่แล้ว

      Make sure that you are in the right directory.

    • @shridevisandiramourty7167
      @shridevisandiramourty7167 3 ปีที่แล้ว

      Yes, I'm exactly in the same directory than the GUI but still not able to choose other type of files than Matlab files...

    • @HVE
      @HVE  3 ปีที่แล้ว

      @@shridevisandiramourty7167 From MATLAB main interface try to import some data, using the import data button. Select all files and see if you can see the text files in your directory.

    • @shridevisandiramourty7167
      @shridevisandiramourty7167 3 ปีที่แล้ว

      @@HVE thanks a lot for your quick response. Finally I used uigetfile('*.csv') and that works for me because I only need csv files as input.

  • @mimiiichen
    @mimiiichen 3 ปีที่แล้ว

    very helpful!!

  • @abidemna4950
    @abidemna4950 3 ปีที่แล้ว

    Thank you so much 😊, how can I insert data from Matlab to Matlab app designer?!