Question

How to create a 3 dimensional matrix from two matrices each of 2 dimensions

I have two matrices A and B each of dimension 4x110. I would like to create a 3 dimensional matrix C of dimension 4x2x110 which ...

4 years ago | 1 answer | 0

Question

Average over one dimension in a matrix

I have a matrix A of dimension 4x110x5. I would like to average over the third dimension and obtain a matrix of dimension 4x110....

4 years ago | 1 answer | 0

Question

Reshape a matrix dimension

I have a matrix A which has dimension 1320 x14x4 and I would like to make it a matrix of dimension 12x110x14x4. I know I should ...

4 years ago | 2 answers | 0

Question

Question regarding Antenna toolbox example provided by mathworks ( beam pattern)

This question is related to the Antenna toolbox in MATLAB. I have found an online example from Mathworks, below is the link whic...

5 years ago | 1 answer | 0

Question

How do I update a matrix in for loop (indexing problem)

Hello, I have a matrix A and a vector u. I want to run a for loop to update the vector u. The operation is easy, I will mult...

5 years ago | 1 answer | 0

Question

Questions regarding Classdef - functions

I have come across the following terms/functions when exploring a class builtin MATLAB and I would like to understand the code b...

6 years ago | 0 answers | 0

Question

The colon notation used in multidimensional array

I have come across the following notation in MATLAB y(:, :, :, 2) = y(:, :, :, 1); y(:, 1, :, 4) = y(:, 1, :, ...

6 years ago | 2 answers | 0

Question

I don't understand what this u(:,1) does to matrix or vector?

Hi What does the following notation mean u(:,1) Does it covert a row vector to a column vector? Thanks

6 years ago | 1 answer | 0

Question

Random Stream and mt19937ar with seed

Hello, The following object is built in by MATLAB comm.AWGNChannel('NoiseMethod', 'Signal to noise ratio (SNR)',... ...

6 years ago | 1 answer | 0

Question

persistent init and rng

I found the following command in a built in function in MATLAB, can anyone please explain to me what they mean? persi...

6 years ago | 0 answers | 0

Question

narginchk and varargin in MATLAB

I have come across PART of a code in MATLAB in a toolbox that I don't understand elseif (txMode==2) narginchk(7,...

6 years ago | 1 answer | 0

Question

Defining MATLAB function parameters

Hi, My question is regarding MATLAB syntax, I provided an example but I care about the syntax and not specifically about this...

6 years ago | 1 answer | 0

Question

Can't understand what rng(seed) does.

I have come across this command in matlab. rng(seed). I used the help to understand what its means, and I still don't get it. ...

6 years ago | 1 answer | 0

Question

Where do I ask specific toolbox questions?

My question is quite general. If I need to ask a question regarding a specific toolbox, for example specific questions regarding...

6 years ago | 1 answer | 0

Question

integral3 how can i make it faster?

I am using integral3 numerical integration to evaluate an integral whose result should end up with a number between 0 and 1 whic...

6 years ago | 1 answer | 0

Question

Speeding up integral3 command is taking too long to execute

I am using MATLAB to execute a triple integral using integral3 and it is running very slow. I was wondering if there ways to spe...

6 years ago | 1 answer | 0

Question

A double integral with a singularity point

I am trying to perform a double integration of function as follows <</matlabcentral/answers/uploaded_files/26049/Screen...

6 years ago | 1 answer | 0

Question

Major confusion for loops - precision not acquired

I have a loop that sums the values of function called pdfomegat omegat= -1.9999:0.01:+1.9999; sum1=0; ...

6 years ago | 3 answers | 0

Question

Symbolic integration vs numerical integration

I have an expression with three variables x,y and v. I want to symbolically integrate v, and so I use int function ...

6 years ago | 2 answers | 0

Question

How do I refine my integration?

I am using integral and integral2 functions to numerically integrate, I am however very skeptical about the results. I was wonde...

6 years ago | 3 answers | 0

Question

Reimann sum and numerical integration

I am trying to solve the functions below numerically using MATLAB <</matlabcentral/answers/uploaded_files/243...

6 years ago | 1 answer | 0

Question

Triple integral using integral3

The following is a triple integral I am trying to compute using MATLAB, (please check link for clear illustration) http://i....

6 years ago | 1 answer | 0

Question

Triple integral found sym ?

I am trying to perform a numerical triple integral over s, gamma1, gamma2. The limits are (-inf +int) (0,+inf) and (gamma1,+inf)...

6 years ago | 2 answers | 0

Question

Draw a polar plot from cartesian plot of gain function

I have used MATLAB to draw the following gain function of an antenna array, the code was as follows, Nt=8; deltat=1;...

6 years ago | 1 answer | 0

Question

Numerical Integration Is my approach correct?

I have an integration which can not be solved in closed form and I have to solve numerically. I am using MATLAB built functions ...

6 years ago | 1 answer | 0

Question

Help in integrating an expression

My question is regarding integral in MATLAB. Please don't be scared by the complicated notation. They are almost all constants. ...

6 years ago | 1 answer | 0

Question

A problem with my digital communication code

I have a problem in writing in MATLAB a program that modulates data bits, adds noise, then demodulates it and calculates the bit...

6 years ago | 2 answers | 0

Question

Integration numerical with variable limits

I am trying to find a double integration numerically where the inner integral has variable limits while the outer integral has ...

6 years ago | 3 answers | 0