How do I write a good question for MATLAB Answers?
Show older comments
I want to get fast and accurate help with my question. What information should I include in the question?
How should I phrase and format my question to make it clear and easy to understand for the people who might help me?
5 Comments
Oleg Komarov
on 2 Feb 2011
We should reorganize the answers and come up with a the general code of conduct for askinq questions...but it should be brief and selfexplanatory.
Jan
on 2 Feb 2011
@Ned: Thanks for this very important question! It will save the frequent answerers 4 days of additional life time a year, if you move this thread together with a compiled list of answers on top of the Answers list or on the interface for asking new questions.
Obviously your question implies the need of a numerated list as answer. Very interesting.
@Oleg: Good idea. Wait for some further ideas, but the most points overlap already. And then let a native speaker compile the list. (Sorry, I'm still struggeling with English, such that I need a bg pile of words to get my thoughts expressed.)
Doug Hull
on 2 Feb 2011
We should have put only one item per answer. Voting up each individual item would have brought best suggestions to the top.
Ned Gulley
on 2 Feb 2011
John
on 7 Jul 2015
Letting us know how proficient with MATLAB would be helpful. If you let us know you are a beginner than it helps the answer writer tailor a response that would make sense to a beginner, which would make it less likely for the question asker to reply back to an answer for clarification. That happens a lot in the MATLAB Answers forum.
Accepted Answer
More Answers (4)
Matt Fig
on 2 Feb 2011
8 votes
Things I like to see in a question:
- Clear explanation of the problem, current code included. If the current code doesn't work, a description of HOW it doesn't work is given. (See #4 below).
- Example input data which is: A. Short. B. Concise. C. Covers cases (NaN's, zeros, Infs, dimensions) present in real data.
- Expected output data corresponding to input data given in #2
- All error messages and/or received output (as differentiated from expected output) is given.
- A descriptive subject line!
Jan
on 2 Feb 2011
6 votes
Dear Ned, You gave an excellent example of how to write a good question already:
1. Use a short and descriptive subject. Avoid general formulations like "I need help", "My Matlab function does not work" and "Plz urgent plz".
2. The body of the question should include the minimal number of needed information, but not less. Explain the data available as input and the wanted result (here: "I want get fast and accurate help"). The best method to specify the input data is to show the Matlab function used to obtain it, or some code to create test data. Bad example: "I have an Excel file...". Then it is impossible to predict, if the user knows how to call XLSREAD already, or not. "I want a nice picture" is too vague to lead to matching answers also.
3. Describe the available toolboxes, Matlab and OS-versions, if they concerns the problem. These details do not waste a lot of space: "Matlab 2009a, WinXP, Toolboxes: Signal-Processing, Spline, Financial" - just a line, but might be helpful. E.g. the appearence of GUI elements is often affected by the OS, so mention it. BUT: The question of this thread does not concern any hardware and software details, so such information wastes the readers time.
4. Be aware, that you are very familiar with your problem, but the readers are not. So write your message, relax, and read it again: Is it possible for others to understand each sentence? Bad examples: "I've tried it with a lot of different approaches - nothing worked". Neither the first nor the second part can be reconsidered by others. Concentrate on what you are searching for: one single efficient solution. Therefore write: "I have tried this: [your code] and this problem occurred: [full error message]/[description of results and difference to expectations]".
5. If you can insert a descriptive picture, do it. A handmade drawing can save 1000 words. Use the advantage, that MATLAB Answers is not a newsgroup!
6. If you have problems with a specific command, read the HELP and DOC - twice. If the questions concerns the absolute basics, read the "Getting Started" chapters of Matlab's documentations. Read the FAQ also: http://matlab.wikia.com/wiki/FAQ It is even worth to read it before a problem appears: It contains a list of "frequently asked questions", so most likely these questions will appear in your life also. If the answers are: "read the help", "read the doc" or "read the FAQ" think about deleting your question.
7. Although it is valuable to follow such advices, it is a very common phenomenon, that a question is solved already, if the inputs, the methods and the outputs are exactly defined. So if your question is incomplete, trust in the further inquiries of the readers and answer them. In the first 12 hours after postin look frequently for the questions of people who try to assist you to improve the question until an exact and efficient answer is possible.
8. Either mark the accepted answer or post the working solution, such that other can profit from the discussion also.
Jiro Doke
on 2 Feb 2011
3 votes
- Read "About MATLAB Answers" page.
- The subject line should be very specific and related to a programming concept (in MATLAB and related products). The scope should not be too broad. For example, "How do I model the human brain using MATLAB and Simulink?" will not get you any answers.
- In the problem description, include as much detail as possible. Describe what you have done so far, including any code snippets if available.
- If there is a specific error you're seeing in your code, strip down your code to the smallest subset that would reproduce your error, and include that in the question. It would be great to include some sample data so that others can run the code.
- Include screenshots, hyperlinks, and formatting to make your question easy to understand. Read this page for markup syntax.
- Use "Comment on this Question" or "Comment on this Answer" to thank the poster or ask follow up questions. Do not ask as another "Answer".
- Accept the answer you found most useful, so that others who have a similar question will know which one worked.
- Do not say "URGENT!! HELP!!" in the subject line. Those questions tend to get the least amount of attention.
Jan
on 26 Jun 2011
3 votes
Do not forget to ask a question!
Several users have posted a general description of what they are doing or planning to do. Of course an experienced member of this forum can sometimes guess, what the actual question might be. But this is not an efficient method to solve problems.
Categories
Find more on Historical Contests 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!