| MATLAB Central > MATLAB Newsreader > Negative indices in arrays |
|
|
|
Since matlab will not allow negative numbers or 0 of indices in arrays, how can I manipulate it to produce numbers for those negative indexes? I'm needing to calculate and plot on a stem plot an array going from -10 to 10 for a specified equation. |
|
You need to be more specific. Give an example. This should be a easy problem to solve, but you need to give more clear. |
|
Alright, welll. For an assignment I'm trying to calculate and plot the values for n for when they are zero and negative for the magnitude and phase plot at the very end of the Prob2.m for Dn. The negative indices are giving me the most difficulties : |
|
"Chris G" <n4cag@yahoo.com> wrote in message <h11nq9$73l$1@fred.mathworks.com>... |
|
61 views and only one person has been able to help me? All I'm looking for is how to get Matlab to plot the negative indices for my array of numbers in Dn... |
|
Hi Chris, |
|
That's a lot of code for people to read through. You need to realize that some people are willing to help here, but it's your job to make it really easy for them. If you post a 100-line-long code and expect people to decode it and solve your issue then you might not get a response. I'm not being mean, but just trying to help. |
|
Seems like Sadik and I had the same take on your problem. I hope this is what you're looking for. If not, please explain more using either one of our examples. We talked about the same thing (I believe we posted at the same time). |
|
|
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| index | Jojo | 14 Jun, 2009 15:04:05 |
| negative | Jojo | 14 Jun, 2009 15:04:05 |
| indices | Jojo | 14 Jun, 2009 15:04:05 |
| array | Jojo | 14 Jun, 2009 15:04:05 |
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.
Contact us at files@mathworks.com