Recent content by phillyj

  1. P

    Trignometric Polynomial complex form

    Hi, I'm trying to learn Fourier transforms by myself. I'm a bit confused about how the trignometric polynomial complex form was derived. I'm referring to this: http://en.wikipedia.org/wiki/Trigonometric_polynomial Now, I haven't taken complex analysis so I only know the basics. I used Euler's...
  2. P

    How are multiplication tables for fields created?

    The class I'm in is not modern algebra nor have I take those courses. The professor of the class [Learning how to read/write in math] decided to try to teach some abstract algebra. I am trying to understand how multiplication is done in a field. I am using this site to help me as it was most...
  3. P

    LaTeX Latex: writing the input/output of program in a report

    I'm working on a report that describes the input and output from Mathematica. Is there any standard way for me to represent them? I done this openoffice already but I want to put my paper into latex. What I currently have in Openoffice format was like this: Input: [1] ________ [2] ________...
  4. P

    Help with Heaviside unit functions

    Hi, I'm not really understanding how to convert the piecewise heaviside into a single function. This was on our quiz and the professor didn't really explain how he got the answer. I can't get the tex to work so: f(t)= { 0, 0 <= t < 1 { (t-1) 1 <= 2 { 1, t >= 2 The answer is...
  5. P

    MATLAB Building a Currency Converter - Help Needed

    Hi, I'm working on a currency converter and have some trouble trying to understand how to do the callback function. What I have is 2 menus with source and target currency. I also have an edit box to enter the amount. I have to press a convert button and the output is displayed in another text...
  6. P

    Solving Boolean Vector: Position of "1" Values

    Yes, the code works. I want to know why the if statement returns only the true values. I'm still learning. When I read the code in my mind this is what I understand: From index 1 to the end of the vector, result is index. Isn't that what if x(k) means? This makes no sense to me. Conditionals...
  7. P

    Solving Boolean Vector: Position of "1" Values

    You misunderstand me. I know this is a built-in fuction but this was an exercise in learning MATLAB conditionals. Can you explain my original question on why the output works that way? My professor isn't around this week otherwise I might ask him. Thanks
  8. P

    Solving Boolean Vector: Position of "1" Values

    Hi, I needed to write a function that takes a boolean vector and returns the position of the "1" values only. The correct way it was done was like this : function res = tmp(x) res=[ ]; for k=1:length(x) if x(k) res = [res,k]; end end I don't understand why the "if" statement...
  9. P

    MATLAB Learn How to Perfectly Shuffle Vectors in Matlab with Simple Pseudo-code"

    Can you explain this to me since I never used loops before? Also, any particular reason why you specify Nx1 zero vector rather than 1xN vector?
  10. P

    MATLAB Learn How to Perfectly Shuffle Vectors in Matlab with Simple Pseudo-code"

    Can you do this without using for loops? We haven''t covered that yet. I may have to ask the professor. Its surprising because even the TA had no clue how to do this with the material we have covered so far. Thanks
  11. P

    MATLAB Learn How to Perfectly Shuffle Vectors in Matlab with Simple Pseudo-code"

    I'm having trouble understanding how to do a perfect shuffle of a vector. I'm supposed to split the vector in half then the 1st element is the 1st element in the first half and the 2nd element is the 1st element of the 2nd half, and so on. For example, if I have [1 2 3 4 5 6] then I need to...
  12. P

    MATLAB Getting Started with Matlab: Summing 2n from 0 to n

    Thanks but I got it. I needed a one-line code like this: n = 25 sum(2.^(0:n))
  13. P

    MATLAB Getting Started with Matlab: Summing 2n from 0 to n

    Hi, I'm new to matlab. I'm trying to sum a function similar to 2n from 0 to n where n is specified as a digit and not a list. I am using the sum() function but I don't really know how to get it to work right for this. Thanks
  14. P

    Kinematics and Newtons 2nd law

    Yes, this is actually for quantum chemistry. Like a review/preview into the math we must know. Its been a while since I did this so can you nudge me in the right direction? What are my initial values? I think that x(0), t is zero or am I thinking incorrectly. Under what topic is calculus...
  15. P

    Kinematics and Newtons 2nd law

    Would that be 20/9.8=2.04 s? I would like to know how to go about deriving the equation from the second law?
Back
Top