Convolution Power - MATLAB Cody - MATLAB Central

Problem 1441. Convolution Power

Difficulty:Rate

Create the convolution-power vector from initial vector x and power n. In other words, similar to the scalar case, raising to the n-th power means repeating the convolution on itself n times.

Assume that n is a non-negative integer and x is a row vector.

Examples:

 convpower(1:5,0)
 ans =
     1
 convpower(1:5,1)
 ans = 
     1     2     3     4     5
 convpower(1:5,2)
 ans = 
     1     4    10    20    35    44    46    40    25

Neither string operations nor interpolations are allowed!

Solution Stats

58.49% Correct | 41.51% Incorrect
Last Solution submitted on Dec 07, 2024

Problem Comments

Solution Comments

Show comments
PIVlab surpasses 100K all-time File Exchange downloads
During the past twelve months, PIVlab, a MATLAB Community Toolbox for particle...
4
8
LLMs with MATLAB updated to support the latest OpenAI Models
Large Languge model with MATLAB, a free add-on that lets you access...
2
4

Problem Recent Solvers52

Suggested Problems

More from this Author18

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!