답변 있음
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년 초과 전 | 2

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

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

6년 초과 전 | 1

답변 있음
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년 초과 전 | 2

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

더 보기