Réponse apportée
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 ...

presque 6 ans il y a | 2

| A accepté

Réponse apportée
Error: Matrix dimensions must agree
Hi Marcello, Here is what happens, in your code. Place the annotations to help you understand. ws=[2 4 6]; % w is a 1 x 3 matr...

presque 6 ans il y a | 0

Réponse apportée
Find row(s) of 3x3 matrix where the 1st and 2nd column equals a value
Hi, Try this: out = M(M(:,1)==1 & M(:,2)==1,:); % For the example provided with value 1 % For any generic value out = M(M(...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
problem using for loop
Hi James, The variable is updated with the latest value in the for loop, leading to have only single value at the end of the fo...

presque 6 ans il y a | 0

Réponse apportée
Cannot understand about this
Hi Byeongchan, This observation is becuase the variable i and actual value in z11 and z12 are plotted. Since the effect values ...

presque 6 ans il y a | 1

Réponse apportée
How do I plot a graph when the parameter changes?
Hi Donghun, This can be done by taking the maximum value of Response_amp and storing the values for each iteration of l. Then p...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
How to estimate channel quality using Sounding Referance Signal in 5G
Hi Kishore, Sounding reference signals are uplink physical signals used by user equipment (UE) for uplink channel sounding, inc...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
how to use "save" command in matlab as an indexable command
Hi Ramin, You can use a different mat file name to save each wavelet. Since, this was placed in for loop, it is always storing ...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Why does this code give a blank plot?
Hi Keerthana, It is because the if condition placed is wrong, and always fx3 is getting 0, therby making only a single point. ...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Combine two matrices into one
Hi Mario, As far as A and B have same sizes, you can perform the following: C = zeros(2*size(A,1),size(A,2)); C(1:2:end,:) = ...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
How can I give a figure both a name and a number?
Hi Felix, You can do that by using Name-Value pairs options of figure. You can even look at the examples provided in that page,...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
how to do a vector rotation?
Hi Taylor, Hope you have solved this long before. Placing the answer to help others, who might having the issue. a = [1;2]; %...

presque 6 ans il y a | 0

Réponse apportée
Compute two matices without using the matrix multiplication
Hi Mansour, Here is the modifications that is required for the code: (Placed a static a and b values, replace with those in you...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Function of rates in matlab
Hi, You can try this: function fare = taxi_fare(d,t) fkm = 1; % first km add_km = ceil(d-fkm); % additional km, perf...

presque 6 ans il y a | 1

Réponse apportée
How do I get this graph?
Hi Joo, The code is calculating as you expected, but not plotting the same because, the plot is getting overwritten with the la...

presque 6 ans il y a | 0

Réponse apportée
How to create a loop generating bins for the group of data in cell array
Hi Luliia, The problem here is that the variables N and edges are overwritten with the latest value each time in the for loop. ...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Can Matlab's arguments function handle structs
Hi Clownfish, The function validation with input structure is not possible directly, instead, you can pass the structure as nam...

presque 6 ans il y a | 0

Réponse apportée
Function of random interleaver
Hi MH, Here is the list of interleaving and deinterleaving functions that are available. Specifically the function of random i...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Sacar N submatrices de una matriz
HI Isabel, You wanted to have submatrices which are having columns spread by 200 each. This can be done with a for loop as such...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
How can i renew my MATLAB license?
Hi Mohammed, Please contact your system administrator or MathWorks to renew this license. If you're not sure who your system a...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Problem with script use
Hi David, To enter a choice when run a script, you can use input function. Try n = input('Enter a valid choice: '); % Then p...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Unable to plot array inside a running while loop
Hi Agnivo, A minor update to your code in placing the plot after the while loops solves this. I commented out the lines that ar...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
How to select a specific point in a linearly spaced vector?
Hi Alireza, You can perform find operation find(x==2); % This value tells the index in x where the value is 2 Hope this helps...

presque 6 ans il y a | 0

Réponse apportée
Indentify spcific point of matrixs
Hi Felix, I see that the for loop condition is not correct. You can try the following function [maxSpeed,thrustDragVal] = maxS...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Keep getting "Index exceeds number of array elements (1)" message
Hi Reem, Make minor modification to the code to avoid that error as shown below: x(1)=0; y(1)=0; c=clock; z=c(1,6)*1000; ...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Reorganizing a large matrix into 4 other matrixes
Hi Ryan, Thanks for attaching the code. The data is present in a matrix form with four columns covering X, Y, U, and V. You ca...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
store variables in a for loop
Hi Davide, You can make the following modification to the code as shown below, which stores all the loop iteration values in th...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
Sum with a for loop of each 2 elements
Hi Ali, Use the following modification to the code: clear all; clc; x=[50 200 20]; for i=2:length(x) c(i-1) = x(i-1) ...

presque 6 ans il y a | 0

Réponse apportée
matrix dimensions must agree error
Hi Roslyn, I assume you provided an incompatible matrix size for the operation to be performed. You can look over this page f...

presque 6 ans il y a | 0

Réponse apportée
OFDM applied to ISDB-T Standard
Hi Mario, To get quick started with the some simulation or a working code for a terrestrial broadcasting, you can look over t...

presque 6 ans il y a | 0

Charger plus