<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <style type="text/css">
        /* Quote Levels Colors */
        blockquote.cite {    color: navy !important; background-color: RGB(245,245,245) !important;
        }
        blockquote.cite blockquote.cite {    color: maroon !important; background-color: RGB(235,235,235) !important;
        }
        blockquote.cite blockquote.cite blockquote.cite {    color: green !important; background-color: RGB(225,225,225) !important;
        }
        blockquote.cite blockquote.cite blockquote.cite blockquote.cite {    color: purple !important; background-color: RGB(215,215,215) !important;
        }
        blockquote.cite blockquote.cite blockquote.cite blockquote.cite blockquote.cite {    color: teal !important; background-color: RGB(205,205,205) !important;
        } 
</style>
  </head>
  <body>
    n=size(a,2)<br>
    for i=1:n<br>
        b=a(:,[1:(i-1) (i+1):n])<br>
    end
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 11/15/2017 9:42, Hermes wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:1510735368777-0.post@n3.nabble.com"
      id="mid_1510735368777_0_post_n3_nabble_com" class=" cite">
      <pre wrap="">Hola,
I have the following matrix
a = [1 2 3; 4 5 6]
and I want to select all columns except one.
I have achieved it in the following way.
a (:, [1 3]);
a (:, [2 3]);
a (:, [1 2]);

and in this other way:
b = [1 2 3]
a (:, [b (b ~ = 1)]);
a (:, [b (b ~ = 2)]);
a (:, [b (b ~ = 3)]);

But I would like to achieve it using a single index; something like that:
a (:, [column ~ = 2])
Any suggestions,

Gracias



--
Sent from: <a class="moz-txt-link-freetext" href="http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html">http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html</a>
_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>


</pre>
    </blockquote>
    <br>
  </body>
</html>