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

Diode modelling, how to model a diode in matlab given data

how to model a diode in matlab given data

Polynomial fitting, how can i used loops instead of polyfit function

how can i used loops instead of polyfit function

Generate a script, Generate a script: To generate a script, click File...

Generate a script: To generate a script, click File, then New, and then M-file. The new window will appear known as the Editor. To generate a new script, simply type the serie

How do I export multisignal wavelet signals, I am using the wavelet gui (wa...

I am using the wavelet gui (wavemenu) to decompose some data. I need to be able to export the signals. This is not a problem using only "Wavelet 1D" where only one time series is b

Crank-nicolson method, clear tic L=1; T=0.2; nust=2000; dt=T...

clear tic L=1; T=0.2; nust=2000; dt=T/nust; n=40; dx=L/n;   r=1;  omega=10:10:5000;%Store Range of Frequencies for Simulation u=zeros(n+1,nust+1);%

Linear indexing, Linear indexing: This is termed as linear indexing. I...

Linear indexing: This is termed as linear indexing. It is generally much better style when working with the matrices to refer to the row and column indices, although. An in

Solving 1st order differential equations, Hi, I need help with solving five...

Hi, I need help with solving five-1st order ODE which are coupled. I need to plot these as well. Could I please get a quote. Thanks

Built-in functions and help, Built-In Functions and help: There are lo...

Built-In Functions and help: There are lots of built-in functions in a MATLAB. The help command is used to find out what functions MATLAB has, and how to use them. For illustr

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