User Profile

Collapse

Profile Sidebar

Collapse
chevon1920
chevon1920
Last Activity: May 2 '08, 03:50 AM
Joined: Feb 19 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • chevon1920
    started a topic Matlab with a little EE anyone?

    Matlab with a little EE anyone?

    Hello, I need help. I need to figure out how to plot the poles and zeros of a transfer function in matlab. I know you use pzmap, but what arguements does it take? Does it just take the coefficients of the numerator and denominator. My book is absolutely unhelpful in this!

    Thanks for any help!
    See more | Go to post

  • chevon1920
    replied to a function that performs 3 task
    in C
    Hi, thanks for your reply. I understand how to do that, the problem I'm having is normally when you have a function print something it returns nothing. How can i write a function that returns a double and it prints in the main when its called, at the same time? Is that even possible? I would assume that when I call the function it will just print the double instead of printing out what I needed it to.
    Thanks for any help!...
    See more | Go to post

    Leave a comment:


  • chevon1920
    started a topic a function that performs 3 task
    in C

    a function that performs 3 task

    I need assistance writing a function that will perform three tasks. The first thing it must do is find the average of a set of data. Then it needs to use a pointer to increment the number above the average. Thanks all fine, but the last thing it has to do is print out the array of structures that have a value larger than average.

    How am I suppose to have a function return a double and print the array of structions at the same time?...
    See more | Go to post

  • chevon1920
    replied to Max value of an element in array of structs
    in C
    Thanks for the reply. I realized my professor wanted to return a double instead, so its not necessary.

    Thanks
    See more | Go to post

    Leave a comment:


  • chevon1920
    started a topic Max value of an element in array of structs
    in C

    Max value of an element in array of structs

    I have a question about structures. I need to write a function that will find the max value of one element of an array of structures. I know how to find the max value of the array of structures, but how do I get the function to return the entire structure not just that portion of it? If that makes any sense.
    See more | Go to post

  • chevon1920
    replied to Output not printing properly
    in C
    I didnt think I needed an initial value for ID. Do you always need one, Its not going to a certain value, I was trying to set up and infinite loop. LOL, I have no clue what flushing stdin means, but Ill figure it and try it, thanks....
    See more | Go to post

    Leave a comment:


  • chevon1920
    replied to Output not printing properly
    in C
    thanks for the reply,
    I defined everything as an integer. And yes it should be between 10 and 5....
    See more | Go to post

    Leave a comment:


  • chevon1920
    started a topic Output not printing properly
    in C

    Output not printing properly

    Hi, I just have a question for anyone who can help. I am trying to write a program that will print to a file. The program has a while loop so that when I run it, it should print to the file each time the loop cylces. It is only printing the 2nd to last cycle, which makes no sense to me. Everything else seem in order, here is my loop.

    I'm sorry I know I'm supposed to put it in some special format to post here, but I dont know how to...
    See more | Go to post
    Last edited by sicarie; Feb 27 '08, 03:40 AM. Reason: Code tags

  • OMG!!!!!!!!!!!! ! I just reread your post and that is the answer! Thank you so much, its so simple, to use the modulus to create a new line!!!!!

    I LOVE YOU!!!!...
    See more | Go to post

    Leave a comment:


  • here is my loop for the 8 data points per line calculation, this works beautifully, but I cant seem to grasp how to do it again for the 4 data points per line
    for (p=1;p<=6;p++)
    {
    m=(base*p);
    for(k=9;k<=16;k ++)
    {
    fprintf(data_2, "%5d",(m*k) );
    fscanf("%lf",(m *k));

    HERE this is what I have tried, but I dont really know what to count. Technically I know how many...
    See more | Go to post

    Leave a comment:


  • thanks for the reply. I know I have alot of variables defined, I was just randomly trying things so I had to create alot of variables. Not a good idea I suppose. I did realize that I can use a loop imbedded in another loop to get it to print 8 characters per line, but I cannot figure out how to print 4 characters per line to the screen. I could do the modulus of 2 and print, but I have no clue how to have it print 4 characters, it keeps printing...
    See more | Go to post

    Leave a comment:


  • I know this is a dumb question but I cant figure this out

    I am trying to do my assignment but I cant figure out how to get 8 data points per line to print to a file.
    Here is the assignment

    1. Program asks the user to enter an odd number as a BASE, using this Base it creates 48 multiples of the BASE and prints in a data file "data_3b.tx t", 8-data per line.

    2. Program opens this data file, scans the contents of "data_3b.tx t" file and counts all the...
    See more | Go to post
    Last edited by Ganon11; Feb 19 '08, 10:06 PM. Reason: Please use the [CODE] tags provided.
No activity results to display
Show More
Working...