How to accept an answer in a comment?

6 views (last 30 days)
I submitted a question and someone answered correctly in a comment to my question. (Someone else answered in an answer, but that answer was not as directly useful as the answer that was in the comment.) Is there a way to accept an answer which is a comment to the question? Or, can I flag the comment to have an editor turn it into an answer which I can then accept?

Accepted Answer

Star Strider
Star Strider on 15 Aug 2014
An editor could move the comment to an answer, but it would appear under the editor’s name. Your best option is to ask the person who wrote the comment to copy it to an answer. If you wanted to alert the person who commented to ask them to do that, you could email through the person’s profile.
Star Strider
Star Strider on 15 Aug 2014
I would add a comment saying that it worked and thanks, and mention that if it appears as an Answer, you will accept it. I doubt many people who leave contact information would object to a note saying the same thing.
(I wouldn’t object. I don’t display my email address in my Answers profile, but people find my email address through my File Exchange profile.)

Sign in to comment.

More Answers (2)

Adam on 15 Aug 2014
Edited: Adam on 15 Aug 2014
I don't think you can accept a comment, but you can probably flag a comment for an editor. I think the answer you are referring to is one I gave, judging by your comment in response to my answer (in a comment) so I have added what I wrote as an Answer in your thread so that you can accept that if you wish.
Sean de Wolski
Sean de Wolski on 15 Aug 2014
@Adam, if it could answer their question, make it an answer :) That way we can give you credit!

Sign in to comment.

Evan on 15 Aug 2014
Edited: Evan on 15 Aug 2014
If you can't get them to re-submit it themselves, and if flagging doesn't work, I would just copy+paste it into an answer of your own, credit the author (maybe with a link to their comment) and accept the answer you posted.
It would be very handy if certain users could move comments to answers (and vice versa), split comments/questions/answers, etc. Perhaps those with 5000 reputation points? Or 2000, it's not like that would be any more dangerous than editing/deleting a comment.


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!

Translated by