If I have a matrix, let's say
a = [1 2 3; 4 5 6]
and
b = [2 2 2; 3 3 3]
when I do a (b) in matlab, I get the answer as
a(b) = [4 4 4; 2 2 2]
what exactly is going on here?
You index a with each element in b . a(2) = 4 and a(3) = 2
b
a(2) = 4
a(3) = 2
So
c = [a(2) a(2) a(2); a(3) a(3) a(3)]
- this is what you see.
Source: https://habr.com/ru/post/954875/More articles:WPF C # Data Binding with DataGridTextColumn - c #How to fill in missing dates with groups in a table in sql - dateConvert 24-hour work time to am / pm in Joda-Time - javaBLE notification when the application is not running - iosRouting security error in Angular / MEAN.io? - javascriptA clean solution to reset class variables between rspec checks - ruby-on-railsError registering in Nginx + Gunicorn + Supervisor + Django - djangoDateTime constructor in php - timezoneHow to (massively) reduce the number of SQL queries in a Rails application? - ruby | fooobar.comHow to find the trace listener (in code) that I declare in app.config? - c #All Articles