Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Member Login

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips now!
  • 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!

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

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Your site was well structured and I found what I was looking for in about 2 minutes. I am looking forward to participating with you in the future..."

Geography

Where in the world do Eng-Tips members come from?
Zerzura (Agricultural)
29 May 12 5:33
Hi there,

I need your help with the following task.
I am trying to compare the two following matrices with each other
A=[8 8 8 8 %month
1 1 1 1 %day
1 2 4 5 %hour
1 2 3 4] %values

B=[8 8 8 8 8 %month
1 1 1 1 1 %day
1 2 3 4 5] %hour

Of course there are not only gaps in the hourly row but also in the daily row.

The resulting matrix should look like that
C=[8 8 8 8 8
1 1 1 1 1
1 2 3 4 5
1 2 NaN 3 4]

The script should check which dates are equal in the matrices A and B and also write the values which I have in the Matrix B and a NaN value in Matrix B if there is a gap.

Thanks in advance for your help!
IRstuff (Aerospace)
29 May 12 11:26
Student posting is not allowed

TTFN
FAQ731-376: Eng-Tips.com Forum Policies

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!

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close