Réponse apportée
How to use tril function on only specific columns in a large matrix?
Hi Zuha, You can use a for loop as below and it does what is required: m = rand(31413,950); for i = 2:10:size(m,2) m(:,i...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
sort a string based on particular value
Hi Sajid, The sort function with the arrayfun can be used to check this. chs = arrayfun(@(x) str2double(string([ch{x}(5+1:8-1)...

plus de 6 ans il y a | 0

Réponse apportée
How to insert copies of columns inside matrix with a specific condition?
Hi Zuha, You can use reshape and repmat functions to do this. Ar = repmat(A,10,1); out = reshape(Ar,10,[]); Hope this helps....

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Why my plot is not working?
Hi Eddy, To get the desired plot, you can perform the following % Option 1: To use it with the appropriate indexing plot(1:le...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
NR PRACH Simulation Problem
Hi Valerio, PRACH support is added in the 5G Toolbox latest release as part of MATLAB R2020a, which contains nrPRACH, nrPRACHIn...

plus de 6 ans il y a | 0

Réponse apportée
estimate BER for LDPC 1/2 code
Hi Pertesis, The issue you observe is due to the usage of comm.BPSKDemodulator with hard decision (which is the default) in con...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
converting sym to double
Hi Parth, The way the syms is used here is the issue. See the link, which provides examples to get started. Do not define the ...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
elements of array are odd or even
Hi Pooneh, The following updates will perform what is looked for clear all clc a=round(0+9*rand(10,1)); for n=1:length(a) %...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
How can I plot a block function?
Hi Eliane, Here is the code that does it t = -1:0.01:1; % Set the limits of span x = zeros(length(t),1); % Initialize an arra...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Function inside a for loop
Hi Ben, Directly use result(i) = mirrms(fileNameArray(i)) would help. Regards, Sriram

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
recurrent solution of difference equation
Hi Rasistlav, You are in the correct way itself. Just use sind instead of sin function. Since, the values are treated as degree...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
How to use rate matching to alter turbo code rate?
HI Muhammad, The difference in size you see is due to the way lteRateRecoverTurbo works. The lteRateRecoverTurbo takes in the i...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Model LO Phase Noise
Hi Waldemer, The way you see different example models from the documentation and from the MATLAB you have, is due to the differ...

plus de 6 ans il y a | 0

Réponse apportée
I need someone to detail the following simulation and what would be the results? PS: I am a novice in using MATLAB and would like to understand.
Hi Jeffy, Here is the annotated code with explanation. This code basically does phase modulation and demodulation. bit_rate = ...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
How to load data into deep learning neural network m-file
Hi Philoxy4 The link helps in ways to load data from excel sheet https://www.mathworks.com/help/matlab/import_export/ways-to-im...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Power spectral density plot correction
Hi Petr, By default, you cannot change the color of output from the functions. However, you can do slight modification to the c...

plus de 6 ans il y a | 2

| A accepté

Réponse apportée
how to find the multiple elements of 5 in a vector ?
Hi Celia, The following code does this L = 10:1000; % Created a vector L spanning from 10 to 1000 % To find the multiple elem...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
plot different parts of vector
Hi Robin, The following code will provide what you are looking for M3 = rand(1,80); j = 1; str = []; for i = 1:20:80 h...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Concatenating vectors based on list of variable names
Hi Jerki, This can be done with a for loop as shown below: out =[] for i = 1:numel(order) out = [out eval(order{i})]; ...

plus de 6 ans il y a | 0

Réponse apportée
Forward and central difference help - loglog plot of errors vs h
Hi Savvanah, In the for loop, h is over written with the last value. I feel that is the issue in the code. Update with h(i) ins...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
RF Tool box and RF blockset
Hi Prarthana, Yes, RF blockset is available from R2017a. Here is the release notes for the product having information of capabi...

plus de 6 ans il y a | 0

Réponse apportée
Distance between one point and the next of a list of points?
Hi Marco, You can use the pdist and pdist2 functions in the Statistics Toolbox XY = [ 0 0; 1 0; 2 0; 3 0; 0 -1;1 -1;2 -1;3 -1]...

plus de 6 ans il y a | 1

Réponse apportée
Dimensions of matrices being concatenated are not consistent.
Hi, I see that the issue is with usage of textscan function. Replace the line with this s=textscan(fid,'%f, %f','headerlines',...

plus de 6 ans il y a | 0

Réponse apportée
how to access matlab file using python?
Hi Bibek, Here is the documentation link that provides how to access MATLAB from python. https://www.mathworks.com/products/ma...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
access the respective values of matrix using the cell array cell position value
Hi Elysi, Here is what you have asked for % Given matrix a = [0 33 34 16 25;... 22 0 20 12 45;... 20 40 0 30 12;......

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
fprintf cell array of two classes
Hi, Use this if the number of rows of both the arrays are same n = size(doubArr,1); arrayfun(@(i) fprintf( '%s %s \n', charAr...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
combining 3 for loops
Hi Nur, If the code is updated to run from time t set from 2 to 1000, this should go away with the error you see. The subtract...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Write a function to calculate the cubic root of a 2D array
Hi Leah, Update the while loop variable n to 1 within the second for loop. This is the issue with half way wrong answer. The in...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Code for simulating multiple matrices
Hi Caillin, To get the output for all the ranges of simulated answers from M1 to Mn, you can use a for loop. n = 5; T = ones(...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
how to call prepared function (m file)
Hi Sani, You can directly call the function with its name, provided it is in the path. For example your downloaded function nam...

plus de 6 ans il y a | 0

| A accepté

Charger plus