Indexing into arrays allows you to address portions of the elements of an array and treat this subset as an array itself, whether for calculations or input to other functions... 続きを読む >>
Essence of Indexing 14
- カテゴリ:
- Indexing,
- Vectorization
Note
Loren on the Art of MATLAB has been archived and will not be updated.
Indexing into arrays allows you to address portions of the elements of an array and treat this subset as an array itself, whether for calculations or input to other functions... 続きを読む >>
In a follow up comment to the inverse mapping post, Lucio noted that loopFR could be fully vectorized and he is right. Rather than update that post directly, I thought I republish the... 続きを読む >>
I am aware of frequent customer requests for replacing multiple values in an array. And the result should be compact code and execute quickly, right?! It came up again on... 続きを読む >>
There have been several requests on the MATLAB newsgroup to calculate the area of a function on a non-rectangular domain. MATLAB's function dblquad uses the technique that I am going to... 続きを読む >>
Since there seems to be so much interest in the topic of going beyond scalar expansion, it seems worth talking about yet some other ways to achieve the same goals. I am very appreciative of the... 続きを読む >>
pre.codeinput { background: #F9F7F3; padding: 10px; border: 1px solid rgb(200,200,200); } @media print { pre.codeinput {word-wrap:break-word; width:100%;} } span.keyword... 続きを読む >>