Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
This may be a basic question but I have to ask this to save time...
If I have,
a := 1
b:=5
how do I program to make this,
"c" is equal to "a" but is copied "b" times to make a matrix shown above
I also forgot to mention that there is a pre-defined function in the collapsed area which will create a vector matrix filled with 1’s.
I have also improved the program function, see attached.
Mike
Mike,
:
That was in my first example, have a look at my second example.
I know it's bad practice to use pre-defined variables, but in this case it didn't matter.
Mike
I think that learning is better with a simple example .
Or how about:
Alan
I much prefer to make functions - matter of style.
- Guy
Exactly the same as my second example
Mike
Mike Armstrong wrote:
Don't encourage ORIGIN = 1
Mike
.