MATLAB Web App: Multiple Page survey

I'm trying to make a GUI that takes in answers from multiple study participants. In the GUI, I want the participants to rate multiple audio files based on different questions. I've built a basic GUI in App Designer for rating one audio file (with placeholder question titles) and I want it to go to another page with the same structure for rating the subsequent audio files.
I'm a newcomer to MATLAB and needed some pointers on how I could do this. Would I need to create multiple .mlapp for all the audio files and somehow connect them as web apps? I don't have any experience with working with web servers and databases, so I'm not sure how I would go about in deploying this app for collecting data. Ideally, I would like participants to answer the questions for all audio files (while keeping them anonymous) and save all their responses to a server in form of an excel sheet.
I've attached the basic look of the GUI (only for 1 audio) as a screenshot below.

댓글 수: 5

dpb
dpb 2024년 7월 13일
Why not just loop over the number of audio files so that the "Proceed" button just loads the next file? You would want some validation code to ensure all Q? have an answer first, etc., but should be nothng more than adding a record to an internal table each pass it would seem...
Shaunak
Shaunak 2024년 7월 13일
That makes a lot more sense, thanks! I added a label at every loop to display which audio is playing just so it's visible for the participants to see what audio file they are rating.
Do you happen to know the specifics how I can deploy it as a web app and what server database I can use to host the app? Sorry if it's a basic question, but I'm very new to working with servers and making your apps interactive in MATLAB
dpb
dpb 2024년 7월 13일
Specifics, no...all I've ever built have been standalone executables. The best I can do is point you to the <documentation> that is the introduction to doing such things.
Shaunak
Shaunak 2024년 7월 13일
Ok thank you!
Mohammad Sami
Mohammad Sami 2024년 7월 15일
you dont need to create new pages or ui layouts. this could be done simply with a few extra variables and functions. a table variable to store your data, an idx property to keep track of what table row you are currently showing in your UI. a function to update your UI based on the idx. a function to update the records in your table variable based on idx when user clicks next etc.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Audio I/O and Waveform Generation에 대해 자세히 알아보기

질문:

2024년 7월 13일

댓글:

2024년 7월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by