<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>cymbaler</author_name>
  <author_url>https://blog.hatena.ne.jp/cymbaler/</author_url>
  <blog_title>マイペースな人生</blog_title>
  <blog_url>https://cymbaler.hatenadiary.org/</blog_url>
  <categories>
    <anon>MATLAB</anon>
  </categories>
  <description>久々に更新私はよく「カウンタ用変数」と呼びますが、 C言語などのプログラミング言語でfor文を回すとき 反復に使っている変数以外の数値では対応しきれなくなって 別に演算した数値を配列に使いたいときがあるかもしれません // Ｃ言語で int s = 0; int a[10] = {1 2 3 4 5 6 7 8 9 10}; int b[5]; int count = 0; for (int i = 0; i &lt; 10; i=i+2) { b[count] = a(i) + a(i+1); count + 1; } これをMATLABで書くとこんな感じ count = 1; for ii = …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcymbaler.hatenadiary.org%2Fentry%2F20121015%2F1350279544&quot; title=&quot;for文でカウンタ用変数を用意しない方法 - マイペースな人生&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-10-15 14:39:04</published>
  <title>for文でカウンタ用変数を用意しない方法</title>
  <type>rich</type>
  <url>https://cymbaler.hatenadiary.org/entry/20121015/1350279544</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
