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

Basic algebra, how to find absolute value of a number

how to find absolute value of a number

Hand Detection, I need a source code for hand detection in matlab please .....

I need a source code for hand detection in matlab please ....

Matlab programming, Obtaining the Partial Fraction Expansion of the Z-Trans...

Obtaining the Partial Fraction Expansion of the Z-Transform expression and to find its Inverse Z-Transforms using MATLAB

Adaptive filters, Adaptive filters can also be used in other applications. ...

Adaptive filters can also be used in other applications. Speech recognition, for example, is performed in a non-stationary environment, and therefore may require adaptive filtering

Reading from a file, Reading from a File: A file has been once created...

Reading from a File: A file has been once created; it can be read into a matrix variable. When the file is a data file, the load function will read from the file filename.ext

Option pricing, Barrier Option pricing in Matlab using MC simulation or fin...

Barrier Option pricing in Matlab using MC simulation or finite difference methods

Illustration of for loop, illustration of for loop: illustration, to p...

illustration of for loop: illustration, to print a column of numbers from 1 to 5: for i = 1:5 fprintf('%d\n',i) end   This loop can be entered in the Command Wi

EMG, How to make EMG analysis by Matlab?

How to make EMG analysis by Matlab?

Program to find the minimum total cost for the fence, A fence enclosure con...

A fence enclosure consists of a rectangle of length L and width 2 R , and a semicircle of radius R , as shown in Figure 1. The enclosure is to be built to have an area of 1600 m

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