Vector-array multiplication in simulink, MATLAB Programming

Assignment Help:

Statement of Problem

I need to realise vector-array multiplication in Simulink. This has been realised in Matlab but because the process yielding the received signal is in Simulink and is both dynamic and continuous, it is imperative that this realisation be done in Simulink.

Matlab realisation

Received data, r = 512x 2 x t

Pseudo inverse channel matrix, G = 2x2x512xt

To realise this in matlab, I have put a for loop as follows:

For j=1:512

Yk(:,j)=G(:,:,j)*r(:j);

end

MATLAB Version 7.0.1.24704 (R14) Service Pack 1 of Simulink takes only 2D data while treating the 3D dimension always as time. In which case instead of considering 512 as the third dimension in the G data, it considers it as time!!!

Test case which works:

A= [1 2;3 4];

B=[5;6];

AA=repmat(A,[1 1 4 5]);

BB=repmat(B,[1 4 5]);

for i=1:4

for j=1:5

Y(:,i,j)=AA(:,:,i,j)*BB(:,i,j);

end

end

Will appreciate every help!


Related Discussions:- Vector-array multiplication in simulink

Gaussian elimination, Diary Files: Before doing this assignment, please rea...

Diary Files: Before doing this assignment, please read the document Notes on Matlab Assignments (available from the course web page). It describes how to record the results of your

Solve a programming problem, Write a function rid_multiple_blanks that will...

Write a function rid_multiple_blanks that will receive a string as an input argument. The string contains a sentence that may have multiple blank spaces in between some of the word

Mri - detecting defects in major ateries, MRI (magnetic resonance imaging) ...

MRI (magnetic resonance imaging) scanners allow doctors to now obtain complete body images for medical diagnosis purposes. The system produces scans which represent slices through

Implement the methods in matlab, The Requirement details of project are as ...

The Requirement details of project are as below. I also need detail description for presentation. For the project, given the training dataset ticdata2000.txt use any method you

Recognizing people in video based on their body", I am doing project "Recog...

I am doing project "Recognizing people in video based on their body" the system will use MATLAB to detect people based on thier body and then recognize them from their clothes "us

Equations of motion of shaft-rotor system, Consider the shaft-rotor system ...

Consider the shaft-rotor system shown in Figure. Write down the equations of motion. Taking  I= 1 kgm 2 and k=10 kNm/rad, for two special cases (α =0.5 and α = 1000) find as many

Design of controller, Design a controller which regulates flow and compensa...

Design a controller which regulates flow and compensate pressure to my desire value in simscape.

Compute the result - algorithms, Compute the result: To compute the ar...

Compute the result: To compute the area, the formula is required. In this situation, the area of the circle is π multiplied by the radius squared. Therefore, that means the va

Looping statements, Looping Statements: Consider the problem of comput...

Looping Statements: Consider the problem of computing the area of a circle with radius of 0.3 centimeters-a MATLAB program certainly is not required to do that; you would use

Program that perform k nearest neighbours algorithm, 1) Convert the table i...

1) Convert the table into format convenient for the processing with MATLAB. 2) Prepare a program that perform K Nearest Neighbours algorithm using Euclidian distance. (Your prog

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd