×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

help needed

help needed

help needed

(OP)
Hi

I am a beginner in MATLAB. I have to develop a code in which I have to read two text files separately containing a column vector each (the vector size can be between 300-400, containing the decimals numbers). Once data is read as txt files I have to perform the following mathematics on it

A(0) = x1*y1 + x2*y2 + x3*y3 + ……  + xN*yN
A(1) = x1*y2 + x2*y3 + x3*y4 + ……  + xN*yN+1
A(2) = x1*y3 + x2*y4 + x3*y5 + ……  + xN*yN+2
.
.
.
.
A(J) = x1*yJ + x2*yJ+1 + x3*yJ+2 + ……  + xN*yN+J

Where x1, x2,...., xN is the first column vector file and y1,y2,...., yN+2 is the second vector file.

The result of the above mathematics will be third column vector file of A(0), A(1), A(2), ….. A(J) which can be saved a output txt file.

Any help in code development will be highly appreciated as I tried to do it myself but due to beginner still finding hard to get it right.


ali

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources