Problem 42776. "Power matrix" of two vectors
Given two row vectors x,y of lengths m and n (respectively), create an m x n matrix whose i,j entry is x(i)^y(j).
Solution Stats
Problem Comments
-
2 Comments
zlotnik
on 9 Apr 2016
what could be better than using bsxfun?
Massimo Zanetti
on 24 Oct 2016
better is let matlab do this for you, an in new release there is no need to call bsxfun because it is calle implicitly
Solution Comments
Show commentsProblem Recent Solvers69
Suggested Problems
-
10699 Solvers
-
Calculate the area of a triangle between three points
3410 Solvers
-
Generate a vector like 1,2,2,3,3,3,4,4,4,4
13585 Solvers
-
Multiples of a Number in a Given Range
939 Solvers
-
Create an anti-identity matrix
200 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!