when i run this code i'm getting and error stating "matrix dimensions must agree",how can i solve this error?
    5 views (last 30 days)
  
       Show older comments
    
 frame=y(2001:2001+fsize);
>> plot(frame);
>> plot(frame.*hamming(length(frame)));
0 Comments
Accepted Answer
  Bish Erbas
      
 on 27 Sep 2018
        Add transpose to first line:
frame=y(2001:2001+fsize)';
Element-by-element multiplication works only if both vectors are horizontal/vertical.
0 Comments
More Answers (0)
See Also
Categories
				Find more on Creating and Concatenating Matrices in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
