Answered

simplying of the statements

Hi Yasasween, Two things to make a simplied equation: Assigning B with zeros, as all the dimensions are known at the first pla...

simplying of the statements

Hi Yasasween, Two things to make a simplied equation: Assigning B with zeros, as all the dimensions are known at the first pla...

3 years ago | 0

| accepted

Answered

Index exceeds the number of array elements (1000).

Hi Samantha, Yes, as mentioned by you in the comments. When ever there is an index accessing the array or matrix, beyond its ...

Index exceeds the number of array elements (1000).

Hi Samantha, Yes, as mentioned by you in the comments. When ever there is an index accessing the array or matrix, beyond its ...

3 years ago | 0

Answered

Why is 4-by-2 matrix compatible with 4-by-1 vector?

Hi Ann, As placed in the documentation link, yes, it is compatible. The .* operation does element wise multiplication. For th...

Why is 4-by-2 matrix compatible with 4-by-1 vector?

Hi Ann, As placed in the documentation link, yes, it is compatible. The .* operation does element wise multiplication. For th...

3 years ago | 1

Answered

Sum of elements in cell array

Hi Hamzah, The issue you observe in numerical values is due to the precision that is not observed for the values. When the for...

Sum of elements in cell array

Hi Hamzah, The issue you observe in numerical values is due to the precision that is not observed for the values. When the for...

3 years ago | 0

| accepted

Answered

How to use a generated MEX function?

Hi Maria, The generated mex file will have an extensions mex for the filename. For example with windows platform, you get the m...

How to use a generated MEX function?

Hi Maria, The generated mex file will have an extensions mex for the filename. For example with windows platform, you get the m...

3 years ago | 0

| accepted

Answered

Why do I get "array indices must be positive integers or logical values" when running this for loop?

Hi Spencer, The access of i_theta in xcoord and ycoord is the issue. In MATLAB, indexing is one based. Try to update as folllo...

Why do I get "array indices must be positive integers or logical values" when running this for loop?

Hi Spencer, The access of i_theta in xcoord and ycoord is the issue. In MATLAB, indexing is one based. Try to update as folllo...

3 years ago | 0

| accepted

Answered

What can I do about this problem to create a table?

Hi Jonathan, You can try converting to strings to avoid such problem. Here is the line of code, that is changed with strings. ...

What can I do about this problem to create a table?

Hi Jonathan, You can try converting to strings to avoid such problem. Here is the line of code, that is changed with strings. ...

3 years ago | 0

| accepted

Answered

Skip iterations in for loop

Hi Maud, You can directly use those values for index i. Try this, for i = [2:4 8:13 17:22 26:31 35:40 44:46] grf43.data(:,i) ...

Skip iterations in for loop

Hi Maud, You can directly use those values for index i. Try this, for i = [2:4 8:13 17:22 26:31 35:40 44:46] grf43.data(:,i) ...

3 years ago | 1

Answered

step amplitude change in a sine wave code Matlab

Hi Macyln, I am not exactly sure as what you are looking for. Based on the figure, i see that you wanted to have different leve...

step amplitude change in a sine wave code Matlab

Hi Macyln, I am not exactly sure as what you are looking for. Based on the figure, i see that you wanted to have different leve...

3 years ago | 0

| accepted

Answered

How to use one function in another function

Hi Sushanth, When the functions f1 and F2 are in the path where function f3 can acess, then you can directly use the function...

How to use one function in another function

Hi Sushanth, When the functions f1 and F2 are in the path where function f3 can acess, then you can directly use the function...

3 years ago | 0

| accepted

Answered

convert 1x1 Cell with scientific number as text to a number in MATLAB.

Hi Eddie, To convert cell to a number, you can use cell2mat function. For usage of the function, look https://www.mathworks.c...

convert 1x1 Cell with scientific number as text to a number in MATLAB.

Hi Eddie, To convert cell to a number, you can use cell2mat function. For usage of the function, look https://www.mathworks.c...

3 years ago | 0

Answered

Doubt about NR PDSCH Throughput example

Hi Angelo Rob, Please refer to the answer placed in https://www.mathworks.com/matlabcentral/answers/549510-input-bits-in-nr-pds...

Doubt about NR PDSCH Throughput example

Hi Angelo Rob, Please refer to the answer placed in https://www.mathworks.com/matlabcentral/answers/549510-input-bits-in-nr-pds...

4 years ago | 0

Answered

Input bits in NR PDSCH Throughput example

Hi AngeloRob, Inorder to get the bit error rate, the simplest is to store an array of bit errors, similar to simThroughput valu...

Input bits in NR PDSCH Throughput example

Hi AngeloRob, Inorder to get the bit error rate, the simplest is to store an array of bit errors, similar to simThroughput valu...

4 years ago | 2

Answered

reverse indexing of a matrix in matlab

Hi Lilly, You get error at that line, because, you just removed the sort operation, which can provide two outputs. The code ca...

reverse indexing of a matrix in matlab

Hi Lilly, You get error at that line, because, you just removed the sort operation, which can provide two outputs. The code ca...

4 years ago | 0

| accepted

Solved

Back to basics 10 - Max Float

Covering some basic topics I haven't seen elsewhere on Cody. Return the largest positive floating-point number MATLAB can han...

4 years ago

Solved

Squaring Matrix

Square the following matrix using matlab % A = 1 2 3 4 5 6 7 8 So new matrix should display...

4 years ago

Solved

Return 'on' or 'off'

When the input is true, return 'on', otherwise, return 'off'.

4 years ago

Solved

Divide by 4

Given the variable x as your input, divide it by four and put the result in y.

4 years ago

Answered

model to create V2X applications

Hi Prateek, For a quick start, in terms of LTE based sidelink V2X communications, at the L1-L3 link-level, the LTE Toolbox has ...

model to create V2X applications

Hi Prateek, For a quick start, in terms of LTE based sidelink V2X communications, at the L1-L3 link-level, the LTE Toolbox has ...

4 years ago | 1

| accepted

Answered

xyz2rgb input arg

Hi Loong, XYZ is the tristimulus values and not the coordinate system, since the color space is varied from XYZ to RGB. You ca...

xyz2rgb input arg

Hi Loong, XYZ is the tristimulus values and not the coordinate system, since the color space is varied from XYZ to RGB. You ca...

4 years ago | 0

| accepted

Answered

channel coefficient generation for TDL channels

Hi Ashok, To get the path filter impulse response for link-level MIMO fading channel (i.e. nrCDLChannel or nrTDLChannel), use t...

channel coefficient generation for TDL channels

Hi Ashok, To get the path filter impulse response for link-level MIMO fading channel (i.e. nrCDLChannel or nrTDLChannel), use t...

4 years ago | 0

Answered

Frame structure in NR PDSCH Throughput example

Hi Angelo, The example considers each slot in a frame is allocated for the downlink transmission. For a 15 kHz SCS, in each fra...

Frame structure in NR PDSCH Throughput example

Hi Angelo, The example considers each slot in a frame is allocated for the downlink transmission. For a 15 kHz SCS, in each fra...

4 years ago | 0

Answered

Reserved PRB in PDSCH object from 5G toolbox not working

Hi Christian, Thanks for sharing the code. The issue of PDSCH not rate-matching around the SSB comes from the incorrect assign...

Reserved PRB in PDSCH object from 5G toolbox not working

Hi Christian, Thanks for sharing the code. The issue of PDSCH not rate-matching around the SSB comes from the incorrect assign...

4 years ago | 0

| accepted

Answered

5G NR Synchronization Procedures

Hi Xiangwei, You are almost right, in expressing the words. Minor correction: Though we can extract the SSB with the stronges...

5G NR Synchronization Procedures

Hi Xiangwei, You are almost right, in expressing the words. Minor correction: Though we can extract the SSB with the stronges...

4 years ago | 1

| accepted

Answered

QAM modulation in Uplink and Downlink Carrier Waveform Generation

Hi Javier, Based on the plots, i see it is placed for an uplink waveform generation example. The uniform color for QPSK with g...

QAM modulation in Uplink and Downlink Carrier Waveform Generation

Hi Javier, Based on the plots, i see it is placed for an uplink waveform generation example. The uniform color for QPSK with g...

4 years ago | 0

| accepted

Answered

Modify number of antennas in NR PDSCH Throughput

Hi Javier, The one most important aspect is to change is the number of layers. The number of layers decide whether the number o...

Modify number of antennas in NR PDSCH Throughput

Hi Javier, The one most important aspect is to change is the number of layers. The number of layers decide whether the number o...

4 years ago | 0

| accepted

Answered

5G NR Downlink Carrier Waveform Generation

Hi Javier, You can provide any values. But the best guide to run different simulations is the Transmission bandwidth configurat...

5G NR Downlink Carrier Waveform Generation

Hi Javier, You can provide any values. But the best guide to run different simulations is the Transmission bandwidth configurat...

4 years ago | 0

| accepted

Answered

SRS in Uplink Carrier Waveform Generation

Hi, Its because in the SRS Instances configuration, the Enable field is set to 0. Here is the code that is present in that sect...

SRS in Uplink Carrier Waveform Generation

Hi, Its because in the SRS Instances configuration, the Enable field is set to 0. Here is the code that is present in that sect...

4 years ago | 0

| accepted

Answered

Plot f(x,y) = sin(2piX)sin(2piY)

Hi William, Try this: x = -2:.1:2 y = -2:.1:2 [X,Y] = meshgrid(x,y) Z = sin(2*pi*X).*sin(2*pi*Y) % Peform element wise mult...

Plot f(x,y) = sin(2piX)sin(2piY)

Hi William, Try this: x = -2:.1:2 y = -2:.1:2 [X,Y] = meshgrid(x,y) Z = sin(2*pi*X).*sin(2*pi*Y) % Peform element wise mult...

4 years ago | 1

Answered

Hey, I am having trouble indexing into string vectors

Hi, Update this as below: res = ["ABC" , "DEF" , "GHI"] tf = [1 0 1]; % This is of type double, so convert to logical as ...

Hey, I am having trouble indexing into string vectors

Hi, Update this as below: res = ["ABC" , "DEF" , "GHI"] tf = [1 0 1]; % This is of type double, so convert to logical as ...

4 years ago | 2

| accepted