Vector-array multiplication in simulink, MATLAB Programming

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!

Posted Date: 3/1/2013 6:31:21 AM | Location : United States







Related Discussions:- Vector-array multiplication in simulink, Assignment Help, Ask Question on Vector-array multiplication in simulink, Get Answer, Expert's Help, Vector-array multiplication in simulink Discussions

Write discussion on Vector-array multiplication in simulink
Your posts are moderated
Related Questions
Problem: Consider a trapezoidal piece of polymer film as shown below. The parallel sides of the trapezoid are insulated and the temperature of the bottom and diagonal sides are f

Your task is to implement the PHYSAT algorithm in Matlab to classify the phytoplankton species in the data you have selected. An algorithm demonstrating one solution is provided b

Create a text file with simulated data. Calculate an experimental y using the first function and some reasonable values for the parameters Add noise Save the x values and ca

Solve the optimality condition for each P equation against M according to the following relation: Condition for Optimality:         ∇ M = λ ∇ P      with respect to C and T.

Write a MATLAB function called pgm which calculates the periodogram. The function inputs should be the length input vector x and its output should be the length N periodogram estim

Illustration of a built-in function: The length function is an illustration of a built-in function which computes a single value; it returns the length of a vector. As an illu

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

The Colon Operator: If the values in the vector are regularly spaced, the colon operator is used to iterate through these values. For illustration, 1:5 results in all the inte


design a rc phase shift oscillator for a particular frequency of oscillation and generate a sinusoidal signal