Answered

How do I subplot multiple tiles that I divided from a satellite image in one figure?

Hi Oanh, You can try the following, since you are there are 16 x 16 tiles. tiles=zeros(500,500); tiles = mat2cell(TOARef_B{5}...

How do I subplot multiple tiles that I divided from a satellite image in one figure?

Hi Oanh, You can try the following, since you are there are 16 x 16 tiles. tiles=zeros(500,500); tiles = mat2cell(TOARef_B{5}...

6 months ago | 1

| accepted

Answered

how can i plot positive magnitude only of a sine wave

Hi Ali, From next time, please post the code you tried and where you have struck. So, that if one wants to try out the things, ...

how can i plot positive magnitude only of a sine wave

Hi Ali, From next time, please post the code you tried and where you have struck. So, that if one wants to try out the things, ...

6 months ago | 1

Answered

Error Using Plot for a Derived Fourier Transform Signal

Hi Mohammed, The code that is provided as some variable issues. I tried to correct and placed the code here, based on what u r ...

Error Using Plot for a Derived Fourier Transform Signal

Hi Mohammed, The code that is provided as some variable issues. I tried to correct and placed the code here, based on what u r ...

6 months ago | 1

| accepted

Answered

USING MEX TO SPEED UP THE CODE

Hi Yogendra, Once you generated the mex (MATLAB executable) using MATLAB Coder. Then, observe that there will be a file generat...

USING MEX TO SPEED UP THE CODE

Hi Yogendra, Once you generated the mex (MATLAB executable) using MATLAB Coder. Then, observe that there will be a file generat...

6 months ago | 1

Answered

Filter transfer function for impulse response

Hi ACICY, I think you just wanted to confirm if the transfer function placed is apt or not. You made a good try, but seems tha...

Filter transfer function for impulse response

Hi ACICY, I think you just wanted to confirm if the transfer function placed is apt or not. You made a good try, but seems tha...

6 months ago | 0

Answered

RF Toolbox and Simulink library browser

Hi Krishnan, RF Toolbox wont be visible in Simulink Library Browser, it is mainly the MATLAB environment. I think you wanted t...

RF Toolbox and Simulink library browser

Hi Krishnan, RF Toolbox wont be visible in Simulink Library Browser, it is mainly the MATLAB environment. I think you wanted t...

6 months ago | 0

Answered

What does ''all'' mean in M = min(A, []. ''all'') ?

Hi xxtan1, The 'all' flag indicates all the elements of the matrix. If the matrix A, as you mentioned is 4 x 4, then min(A,[]...

What does ''all'' mean in M = min(A, []. ''all'') ?

Hi xxtan1, The 'all' flag indicates all the elements of the matrix. If the matrix A, as you mentioned is 4 x 4, then min(A,[]...

6 months ago | 2

| accepted

Answered

Saving plots in signal analyzer app

HI Hamidreza, Inorder to save the output displays, you can copy and paste them on another application like Word, Paint. Then, s...

Saving plots in signal analyzer app

HI Hamidreza, Inorder to save the output displays, you can copy and paste them on another application like Word, Paint. Then, s...

6 months ago | 0

Answered

Find the general solution of the equation y′−y= y2ex.

Hi Satyanarayana, Differential equations can be solved with dsolve function. Here is the code, that you might be looking for: ...

Find the general solution of the equation y′−y= y2ex.

Hi Satyanarayana, Differential equations can be solved with dsolve function. Here is the code, that you might be looking for: ...

6 months ago | 0

Answered

How accessible is Simulink for visually impaired users?

Hi Stuart, Here is the accessibility statement of 2020 Q1 https://www.mathworks.com/support/accessibility.html As a first step...

How accessible is Simulink for visually impaired users?

Hi Stuart, Here is the accessibility statement of 2020 Q1 https://www.mathworks.com/support/accessibility.html As a first step...

6 months ago | 0

Answered

Creating a Vector with 5 elements in a specific way

Hi Yuval, n = 5; u = 2.^(0:n-1); Hope this helps. Regards, Sriram

Creating a Vector with 5 elements in a specific way

Hi Yuval, n = 5; u = 2.^(0:n-1); Hope this helps. Regards, Sriram

6 months ago | 0

Answered

Simple circuit using Simulink

Hi Luca, You can draw this in Simulink, if you hace access to Simscape Electical. There are quite a good number of examples an...

Simple circuit using Simulink

Hi Luca, You can draw this in Simulink, if you hace access to Simscape Electical. There are quite a good number of examples an...

6 months ago | 0

| accepted

Answered

Sum of two numbers is not accepted

Hi Stanislav, It is the way the floating point airthmetic are performed in MATLAB. If you would have tried 0.14 + 0.001 equals...

Sum of two numbers is not accepted

Hi Stanislav, It is the way the floating point airthmetic are performed in MATLAB. If you would have tried 0.14 + 0.001 equals...

6 months ago | 1

Answered

How to reshape matrix 2 columns by 2 columns

Hi Ren, Use individual columns and append them. For the sample code you provided, it can be done as below: a = [1 0 2 0 2 3; ...

How to reshape matrix 2 columns by 2 columns

Hi Ren, Use individual columns and append them. For the sample code you provided, it can be done as below: a = [1 0 2 0 2 3; ...

6 months ago | 0

| accepted

Answered

plot does not display anything using hold on

Hi Dekel, The way you are accessing pix_value_mat indicates it could be a scalar. If there a single value plotted over the valu...

plot does not display anything using hold on

Hi Dekel, The way you are accessing pix_value_mat indicates it could be a scalar. If there a single value plotted over the valu...

6 months ago | 0

Answered

Is there a bug in the if function

HI Tianyuan, The issue is not with the if condition, but the way the MATLAB deals with the floating point numbers. "Almost all ...

Is there a bug in the if function

HI Tianyuan, The issue is not with the if condition, but the way the MATLAB deals with the floating point numbers. "Almost all ...

6 months ago | 0

Answered

I keep getting the following error "Unable to convert expression into double array" for the code given below, please help

Hi Ruban Karthik, The issue you observe is due to the conversion of symbolic variables to double. For the input provided, the ...

I keep getting the following error "Unable to convert expression into double array" for the code given below, please help

Hi Ruban Karthik, The issue you observe is due to the conversion of symbolic variables to double. For the input provided, the ...

6 months ago | 0

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...

6 months 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 ...

6 months 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...

6 months 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...

6 months 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...

6 months 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...

6 months 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. ...

6 months 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) ...

6 months 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...

6 months 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...

6 months 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...

6 months 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...

7 months 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...

7 months ago | 0