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

Find the distribution of data with matlab, how to make a histogram of data,...

how to make a histogram of data, example x=[5 6 3 2 5] and then find the distribution

Population pyramid, I want to write a function in matlab which gives me a p...

I want to write a function in matlab which gives me a population pyramid bar chart. could you please help me do this.

Digital communication, I need this task to be done with discription of matl...

I need this task to be done with discription of matlab coding.

National log, how to write the national log (ln(x)) in matlap ?

how to write the national log (ln(x)) in matlap ?

Variable number of output arguments - function, Variable number of output a...

Variable number of output arguments: The variable number of output arguments can also be identified. For illustration, the one input argument is passed to the below function t

Base o absorptoin system, plase help me to convert a theory part of ammonia...

plase help me to convert a theory part of ammonia-vapour simple absorption system into matlab programmong

Illustration of a conditional loop, Illustration of a conditional loop - Wh...

Illustration of a conditional loop - While loop: As an illustration of a conditional loop, we will write a function which will find the first factorial which is greater than t

GAUSS ELIMNATION, 1;write a matlab of geuss elimination with scaling and pi...

1;write a matlab of geuss elimination with scaling and pivoting under consideration?

Draw the histogram of the original image, Given the following image, ...

Given the following image, 1 2 1 1 2 0 0 1 5 1 0 1

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