Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How can I train myself in working with arrays professionally?

조회 수: 1 (최근 30일)
AP
AP 2011년 5월 11일
마감: MATLAB Answer Bot 2021년 8월 20일
Are there any resources for learning about arrays? I want to learn how to take advantage of their efficiency both in speed and simplicity. That will save me a lot of time when I use arrays manipulation instead of using FOR loops as they are much much faster and efficient.
Thanks, Ahmad

답변 (1개)

Matt Fig
Matt Fig 2011년 5월 11일
I am afraid you are a little misinformed. Working with arrays, commonly known as using vectorized code, is not necessarily faster than using FOR loops - often it is slower and more memory intensive. All you have to do is look at some of the posts on this site to find this to be true. For a recent example, look here (there are many many more examples to be found):
Having said that, you can learn how to use vectorized code by also looking at posts on this site, and over on the newsgroup. Writing good code is often a matter of knowing what approach to use in a given circumstance, and according to requirements/resources, and that comes from experience.
  댓글 수: 2
Andrew Newell
Andrew Newell 2011년 5월 11일
Better still, just work through all of Matt's answers!
Matt Fig
Matt Fig 2011년 5월 11일
(Blush) Or any or all of the frequent contributor's answers!
We have some real good MATLABers on this site, for sure...

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by