Why are all the examples for matlab functions hindered by useless simplistic examples that do not show how all features of the functions work? One cannot determine how to use any function of any complexity with the examples given.
이전 댓글 표시
Take a look at any example and forward to me to prove me wrong.
댓글 수: 4
I do tend to agree altho there are some cases that are less bad than others...
I've complained for 30 years that the documentation is all example based and narrative form rather than actually describing the actual language in a formal form as does, say, the Fortran Standard for it.
I understand the intent is for easy learning and getting started at what is supposed to be a rapid development environment but as more and more complex data constructs and exotic functions get added, the complexity continues to compound.
'Tis a conundrum, indeed...
One almost needs two sets of doc's -- one for the beginner/novice/intermediate class of user and another for the advanced or that the beginner can dig into for specific functionality when runs into impasse with accumarray for instance or more esoteric other areas.
Then again, there's the problem that it appears few really do read thoroughly the doc that is there including the examples that often do explain precisely how to solve a problem posed on Answers.
Guillaume
2019년 7월 20일
My opinion: If I have to look at the examples to understand how to use a function, the formal documentation is not written well enough. And I hate that you have to jump past the examples to look at the actual documentation of inputs/outputs, which is the bit I care about. I agree with dpb, the formal part of the documentation could often use some polish.
On the other hand, I'm probably an atypical users and lots of people do tend to rely on examples to learn how to use functions.
In any case, if you feel that the documentation of a function needs improving, let mathworks know. I've had some moderate success in getting them to improve it.
John D'Errico
2019년 7월 20일
- Different people learn differently. Some need examples, and lots of them. Others cannot be bothered to look at a single example. I have gotten many direct e-mail questions that prove that to be true.
- You will never satisfty all people.
Rik
2019년 7월 20일
On the other hand, I'm probably an atypical user
You're reading the documentation, I suspect that already makes you atypical.
Writing good documentation is really difficult. You will never cover all use cases without making your doc really bloated. If you have a look at my WBM function (an API to the archive.org Wayback Machine), that doc is already a full page long without a lot of examples. I hope to have answered most questions about syntax, but I'm bound to have forgotten something.
I agree the input/output section can generally use some more detail, especially since that is more geared towards power users.
In general however, I think the documentation is pretty good and much better than many other languages/environments.
채택된 답변
추가 답변 (3개)
Steven Lord
2019년 7월 21일
3 개 추천
Speaking just from my own perspective, and just giving my opinion:
My understanding of your position is that the documentation should be completely comprehensive, explaining with examples the full use of all the potential options for a function. [I symphathize; often I've asked the developers "What should function X do in situation Y?" But I have an advantage most people don't: direct access to the development staff.] But if we did that, a lot of functions would need to have documentation pages that look more like a chapter from a math textbook. That has benefits and drawbacks.
I remember a lesson from one of the training courses I took here at MathWorks, which I took when I was responsible for part of the new hire training material for new members of the Quality Engineering department. The instructor asked us to whom we should tailor the material in our course: the 25% of the class who knew the material best or the 25% of the class who knew the material the least. The answer was to target the 25% of the class who knew the material the least: if you target the most advanced section of the class you risk leaving behind the people who don't know the material as well. If you target the people who didn't know the material very well, you risk boring the more advanced members of the class -- but you could use them as assistants to help you teach the rest of the class.
Why do I bring up that training? In some sense, the documentation examples are training for how to use the functions. If we made the documentation examples too long and/or involved, new users are likely to TL;DR the whole page.
That being said, in some cases you're right that the documentation should have more in-depth examples. If there's a function for which you wish there was an example covering a specific aspect of that function, let the documentation staff know using the "How useful was this information?" box at the end of the documentation page. Once you vote for 1-5 stars there's an edit box where you can type more in-depth feedback, and I know for a fact that the documentation staff reads that feedback.
Also consider if the example you wish existed is more an example that shows that function in isolation or more of a workflow example that shows how to use that function in conjunction with other functions, or part of a page that discusses a broader topic (like the ODE solvers) rather than a specific function.
Mark Smith
2019년 7월 20일
0 개 추천
댓글 수: 2
John D'Errico
2019년 7월 20일
Please don't answer your question with a comment.
Guillaume
2019년 7월 20일
"The moderator can close this issue."
There are no moderators. Anybody with sufficient reputation can close any question. However, closing a question on Answers make it disappear so it's unlikely that any of us would close this.
Leaving questions open is not an issue.
Mark Smith
2019년 7월 22일
0 개 추천
댓글 수: 3
John D'Errico
2019년 7월 22일
Again, please stop adding new answers. Learn to use comments.
Mark Smith
2019년 7월 22일
Rik
2019년 7월 22일
Every question and every answer has a separate comment section, which helps when the order of answers change (the accepted answer will be at the top, the others are sorted by number of votes, oldest first).
There is no need to stop posting, but it does help if you use the appropriate place to write it. Using this advice increases the usefulness for every future reader (and current readers as well).
카테고리
도움말 센터 및 File Exchange에서 Programming에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!