Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
I generated a percentage range from 0 to 100% with a step of 5 percent. Since Mathcad did not want to concatenate two matrices generated this way using the augment function, I created a manually entered matrix. Here, a problem arose because the percentage range entered by different methods yields different results in calculations. What mechanism is behind this?
Solved! Go to Solution.
A range is NOT a vector, so you cannot apply vector/matrix operations to it.
You define a range R for example with:
R:=1, 2 .. 9
To define a vector V with the same set of values you can use various methods. One is:
V:=matrix(9,1,max)+1
Another is:
i:=0, 1 .. 8
V[i:=i+1
Ranges are ONLY used for:
. plotting functions, the range sets the abcissa values.
. Generating vectors and matrices, see above example for the range i.
. Looping/iterations, example:
j:=3, 5 .. 7
V[j=
Should give you the set of values 4, 6 and 8.
Success!
Luc
Great thanks for the help, LucMeekes . Generally, I'm still puzzled as to why inserting a manually created table into the calculations or a table created using the method you suggested results in the program calculating incorrect values: