Re: help to flush out the values of variables



What I would suggest to you is to declare an array with the same
varible name as the one that you want to clear. Preset the matrix
values to zero. For example

start with
matrix y = [1 2 3 4 5]

if y = zeros(1,5); =>meaning put zeros in the 1st row, elements 1-5

y then becomes

y = [0 0 0 0 0]

You can also intialize a matrix to using all ones by using y=
ones(1,5);
I hope that this helps.

-David

.



Relevant Pages

  • Re: portable sizeof solution
    ... integerdoesn't give you a single-byte ... o There is no need to declare such a big array. ... Prev by Date: ...
    (comp.lang.fortran)
  • Re: PLEASE..
    ... would declare an array of integers of length 5 called v. ... typedef int RowArray; ... Prev by Date: ...
    (comp.lang.c)
  • 2D variable array
    ... how do i declare an array with two dimensions and a variable number of ... Prev by Date: ...
    (microsoft.public.excel.programming)
  • Re: [HELP] How to use command buttons in cycles
    ... if i would declare an array of command buttons how i should ... Prev by Date: ...
    (microsoft.public.excel.programming)
  • Re: Passing an array of structuresfrom a pointer?
    ... to only declare structs in headers and then define the ... the struct should be declared ... what if you have a simple array like this: ... In the header we would declare? ...
    (microsoft.public.vc.language)