Get Help

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- Returning an extra zero when using a vector

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

01-17-2020
09:25 AM

01-17-2020
09:25 AM

Hi,

I have a problem when using a defined vector in a function. As you can see below, the variable (i), goes from 1 to 3 with increments of 1.

When I use this variable in the function Dl(i) and Di(i) it returns one extra value in the answer, (0). (See where the arrow is pointing in the picture below)

This becomes a problem when I later on is going to use i.e. Di(i) in the equation shown below:

What I want to do is to remove this "extra" 0 for all functions of (i)

Anyone that can help me out?

Solved! Go to Solution.

Labels:

1 ACCEPTED SOLUTION

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

01-17-2020
09:29 AM

01-17-2020
09:29 AM

Hi,

You have to set the origin to 1, write like this: ORIGIN: = 1. By default, in Mathcad, it is set to zero, therefore you find the first element of the vector equal to zero.

2 REPLIES 2

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

01-17-2020
09:29 AM

01-17-2020
09:29 AM

Hi,

You have to set the origin to 1, write like this: ORIGIN: = 1. By default, in Mathcad, it is set to zero, therefore you find the first element of the vector equal to zero.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

01-17-2020
09:46 AM

01-17-2020
09:46 AM

Re: Returning an extra zero when using a vector

Perfect! Thanks allot! 👍