Building a survey GUI that records the answers of different study participants
Show older comments
Hello everyone,
I'm pretty new to MATLAB and was hoping if I could get some advice. I'm trying to build a MATLAB GUI for a study where I want the participants to listen to multiple audio files and give ratings for each (by slider values). I plan on deploying a web app and making it available on the Web Server so that pariticipants (that don't have MATLAB) can access a link and send in their anonymous responses. I would like these responses to be saved in an excel sheet for all participants for analysis later.
I haven't reached the deployment stage of this GUI (currently waiting on a license for Web Server access), but I was wondering if anyone had any suggestions when it comes to building a participant survery in MATLAB. Additionally, if anyone has an pariticipant survey scripts that already do that, I would really appreciate it if you could share it with me!
Accepted Answer
More Answers (1)
Umar
on 30 Jun 2024
0 votes
Hi Shaunak,
To answer your question, you can utilize the App Designer tool for a user-friendly interface. You can incorporate audio playback features and slider components for rating inputs. When deploying as a web app, consider using MATLAB Web App Server for hosting. To save responses to an Excel sheet, use MATLAB's writetable function to store participant data efficiently.
Here's a basic example to get you started:
% Sample code for saving participant responses to an Excel file
data = {'Participant 1', 'Rating 1'; 'Participant 2', 'Rating 2'};
T = cell2table(data, 'VariableNames', {'Participant', 'Rating'});
writetable(T, 'ParticipantResponses.xlsx');
Hope this will get you started.
3 Comments
Shaunak
on 6 Jul 2024
Umar
on 6 Jul 2024
Hi Shaunak,
There are open-source alternatives available that offer similar functionalities. One popular open-source option is GUIDE (Graphical User Interface Development Environment), which is a part of Matlab itself and provides a more traditional approach to creating GUIs compared to App Designer.
For more information regarding GUIDE, please refer to
http://www.ece.northwestern.edu/local-apps/matlabhelp/techdoc/creating_guis/devel_e2.html
Another notable open-source alternative is Qt Designer, which is part of the Qt framework. Qt Designer allows you to design GUIs visually and then export the UI to be used with various programming languages, including Python and C++. It offers a wide range of widgets and features for creating interactive applications.
For more information regarding Qt, please refer to https://doc.qt.io/qt-6/qtdesigner-manual.html
Now, if you prefer working with Python, Tkinter is a built-in GUI toolkit that comes with Python and allows you to create simple GUI applications. While Tkinter may not offer as many advanced features as Matlab's App Designer, it is a good option for basic GUI development.
For more information regarding tainted, please refer to https://docs.python.org/3/library/tkinter.html
Let me know if you still need further assistance or help.
Shaunak
on 10 Jul 2024
Categories
Find more on MATLAB Web App Server in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!