Answered
the purpose of this code segment
Hi Oai, The placed code just repeats the binary data by the ratio provided. It is a sort of upsampling when the binary_vector i...

6 years ago | 2

Answered
Y=√(|e^x | )
Hi Gabriela, This can be written in MATLAB program as such, x = 10; y = sqrt(abs(exp(x))); The sqrt, abs, and exp functions ...

6 years ago | 1

| accepted

Answered
Help with error command and user input
Hi Stieve, You can try running the infinite loop, till the input provided is one of the valid values. Once, you place the erro...

6 years ago | 0

Answered
Undefined function or variable 'impact'.
Hi Raad, Make sure the function 'impact' is present in the matlab path. You can try >> which impact Then add the folder in wh...

6 years ago | 0

Answered
Low-Pass Filter (Discrete or Continuous) not appearing in library.
Hi Mathew, This link of lowpass filter should provide you the insights in the way the block can be used. Hope this helps. Reg...

6 years ago | 0

Answered
Mean of columns within matrix blocks of different dimensions
Hi Fpet, You can try the following: B = mat2cell(A,2151,[3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 4 4 3 3 3]); bAvgCell ...

6 years ago | 0

| accepted

Answered
How to Generate 12 random values and use the fft command in Matlab to find its 12-point DFT
Hi Riya, You can generate random values with rand function and perform DFT with fft function. Simply, x = rand(12,1); y = f...

6 years ago | 1

Answered
Network Analysis and Visualization
Hi Tugce, As a starting point, you can look over the FIle exchange submissions pmfg and PMFG, by Tomaso. You can contact the au...

6 years ago | 0

Answered
BER is showing zero
Hi Ruhin, You get zero BER due to very high SNR in the range of 65 to 68 dB. Try to modify the IdB to a very low value, to red...

6 years ago | 1

Answered
zero padding between data
Hi Fima, You can perform this task in many ways, one simple way is this: % Assign a variable with zeros for the length of the ...

6 years ago | 0

| accepted

Answered
trplot function doesn't show one of the axis
Hi Hassan, The function rotx and roty takes the input angle in degrees. The examples and description on these pages will provi...

6 years ago | 0

Answered
Please Explain this code
Hi Caitlin, Here is the annotated code with the explanation: clc; % Clear command window clear all; % Clears all the va...

6 years ago | 0

Answered
How to Subplot in a for loop
Hi Patrick, You can the following modifications to the code: 1) To plot it inline the for loops, you can use the count tempora...

6 years ago | 0

| accepted

Answered
Simple rearrangement of matrix
Hi Jens, Small modification to what you have done would work, this doesn't require a for loop A = [1,2,3]'; B = [A A]; B = r...

6 years ago | 0

| accepted

Answered
Array indices must be positive integers or logical values.
Hi Samuel, In the calculation of m in the for loop, trig value is not multiplied instead accessed with a value. This is the sou...

6 years ago | 0

| accepted

Answered
how to plot vector fields in matlab ??
Hi Pabba, You can look over the script provided here, which gives insights of how this can be done. The other usable function ...

6 years ago | 0

Answered
Taking An Average of Multiple Outputs From For Loop
Hi Celeste, You can take the mean of every reuterned M value, if you store the calculate M value in an array. The code overwrit...

6 years ago | 0

| accepted

Answered
How do i concatanate this two matrices even if they are not consistent .
Hi Bita, In general, inorder to concatenate two matrices any of the dimension must be the same. Like if number of rows are sa...

6 years ago | 0

| accepted

Answered
Repeating loop until input conditions are met
Hi, One small change that can be done is to place a while loop for the a1 input and then if a1 < 180, break the loop. Prototyp...

6 years ago | 0

| accepted

Answered
Error in if condition
Hi Ararat, Based on the information provided, the following will help if any(isnan(enthleft), 'all') && any(isnan(enthright), ...

6 years ago | 1

Answered
Ble and blelist functions cannot be found
Hi Natalija, The functions ble and blelist functions comes with support for Bluetooth Low Energy Communication with MATLAB from...

6 years ago | 2

Answered
Making Encoder for cyclic code
Hi Satrajeet, You might be looking for the binary encoder block and it is part of Communications Toolbox. Here is the link for ...

6 years ago | 0

Answered
Error while compressing the image using dct2()
Hi Anuja, This error can be solved by perfoming the RGB to gray conversion using rgb2gray function. To know the usage of dct2 w...

6 years ago | 0

| accepted

Answered
How to graph using a for loop
Hi Jose, This code need not require a for loop. The following can be done to get the same result: clc f=196.2; fi=0;...

6 years ago | 1

Answered
Invalid use of Operator error
Hi Pranav, Direct copy paste may not place it exactly as how is it written in the book. You could try to make slight modificati...

6 years ago | 0

| accepted

Answered
How to sum my matrix element?
Hi Eddy, It is because in one of the for loop, you made sum as a variable too. Using the same variable which is the same as inb...

6 years ago | 0

| accepted

Answered
How to edit matrice to another matrice?
Hi Ahdia, To perform just what you have asked for, you can do something as below: a = 10; b = 20; c = 30; d = 40; e = 50; ...

6 years ago | 1

| accepted

Answered
How to combine arrays
Hi, The following should help you do it: D = zeros(size(A)); D(A==1 | B == 1 | C == 1) = 1; Hope this helps. Regards, Srir...

6 years ago | 0

| accepted

Answered
can I download R2018a as a trial?
Hi Emily, You can download the free trial of any MATLAB version from here. To see the compatibility issues with R2018a updates...

6 years ago | 0

Answered
How to calculate IIR coefficient from filterDesigner
Hi Thanah, To export the filiter coefficients, you can try the following as suggested here https://www.mathworks.com/help/signa...

6 years ago | 0

Load more