I'll try my best.
In my first reply you saw that we can draw points and connect them if we simply plot a vector of y-coordinates over the corresponding vector of x-coordinates. In the plot formatting ribbon we can then select, color, line style and thickness (or if we want the dots connected at all), if we want to see the points and what symbol. Unfortunately we cannot set linethickness and size of the point symbol separately.
In the new sheet I created the data in a n x 2 matrix. The first column being the x-coordinates and the second the y-coordinates. In the plot region you see that I selected the appropriate column using the column-selector you get by pressing ctrl-shift-C.
I also made use of NaN. This stands for "Not-a-Number" and has the effect in 2D-plots that the connection between the points is broken. Much like a "penup" command in a turtle-like drawing program. For my convenienceI I had setup a 1x2 row of NaN's and called this stop.
Next thing I used was the stack command. This command does what it says, it stacks matrices or scalars one on top of the other. This allows me to develop the datastructure for the full plot step by step.
Lets say I create a 3x2 Matrix A representing 3 points forming an "L", top of the "L" is the first line. Then I create a 1x2 matrix B representing a single point, lets say in the upper right over the lower right point of the "L". So C:=stack(A,B) will create a datastrucure which looks like an "U" if plotted.
Last thing is the arc routine. It returns a 2-column matrix of point coordinates which form (part) of a circle. The function has 6 parameters:
- x-coordinate of the center of the circle
- y-coordinate of the center of the circle
- radius of the circle
- starting angle (0 is at the right, counter clockwise measured, so 90° is at the top)
- ending angle
- number of points which should be created
You may create similar routines like arc to return different shapes. For an ellipse you would add just two additional parameters (half the minor axis and the angle of the major axis e.g.) and change the equations accordingly.
You may draw circuit diagrams and make routines for capacity, resistor and coil/inductivity. But who would do that? Its nice we could do it, but thats sure not what Mathcad is made for.
HinndNaser wrote: That is what I am looking for actually, but the one I am doing doesnt end up being cars:), |
Hmm, isn't it a baby stroller? 🙂
So what is it you will end up with?