
Sherwin
Followers: 0 Following: 0
Feeds
質問
Matlab figure: The legend replaces the graph completely and there is no graph
I am trying to plot four matrices as a line graph with two y axes, when the legend is added it completely replaces the graph and...
約1年 前 | 1 件の回答 | 0
1
回答質問
several minimum values on a vector
I want to use the min function to find the index of the element with minimum value on vector Z: [X,Y] = min(Z,[],1); how can I...
3年弱 前 | 2 件の回答 | 0
2
回答質問
Using break/continue in a for loop
I have this loop and I want the second loop to have steps with different sizes and I need the inner loop to end after each itera...
3年弱 前 | 1 件の回答 | 0
1
回答質問
What is the equivalence for the Big M in MATLAB?
Hi, If I want to assign a really big number to a matrix so that when I want to take the minimum of the vector then that element ...
3年弱 前 | 1 件の回答 | 0
1
回答質問
importing only one element of a matrix into a function
Hi, I have a loop which calls a function in it. The function needs only one element of the matrix that the loop is counting. Can...
3年弱 前 | 1 件の回答 | 0
1
回答質問
How to use break/continue?
Hi, I have the following matrices, AT = [1 1 0 0 0 ; 0 0 1 1 0; 1 0 0 1 1]; % a 3*5 matrix yHT = [1 ; 1 ; 0 ; 0 ; 1]; % a 5*...
3年弱 前 | 1 件の回答 | 0
1
回答質問
obvious error in differentiation
Hi, I have a function as Z = (T-Tp)*lambdam*u + ((p*(h^2)*gammaw)/k2) + ((p^2)*(h^2)*l*alpha*r*gammac)/(D*u*C) + (ro*p*(l^2)...
約3年 前 | 1 件の回答 | 0
1
回答質問
Empty Sym 0-by-1
Hi, I have this code which returns empty sym for ustar. I thought it's because maybe I can't get u as a closed form solution fro...
約3年 前 | 2 件の回答 | 0
2
回答質問
How to customize a complex differentiated equation?
I have an equation as s = diff(Z,u)= sqrt((r^2+e3*G*H*x^4e2-f^3*b)/(c^7+r*x*w*p)); I want to put this equation (diffrentia...
約3年 前 | 1 件の回答 | 0
1
回答質問
Error using PARFOR: Index exceeds the number of array elements
Hi, I'm using a parfor loop in my GA algorithm. After some time of running this error pops up: Error using distcomp.remotepar...
約4年 前 | 1 件の回答 | 0
1
回答質問
Playing an Internal Beep at the end of a run (without speakers)
Hi, Is there a command that can produce internal beeping sound at the end of a run? I mean the beeping sound that you can hear ...
約4年 前 | 0 件の回答 | 0
0
回答質問
How to save specific rows of a Cell Array?
Hi, I have a cell array O which stores the output of an iterative algorithm. After each 1000 iteration, I want to save the l...
4年以上 前 | 1 件の回答 | 0
1
回答質問
Is there an online remote server that I can run my code on?
Hi, I have a GA code that takes a long time to converge (4-5 days). I want to know if there is an online remote server that I ca...
4年以上 前 | 2 件の回答 | 0
2
回答回答済み
Errors without any explanations
For anyone having the same problem, as one of the commenters indicated, this only happens in Live Scripts. Running the code as s...
Errors without any explanations
For anyone having the same problem, as one of the commenters indicated, this only happens in Live Scripts. Running the code as s...
4年以上 前 | 0
| 採用済み
質問
Errors without any explanations
When I run my codes on MATLAB 2020a, I get erros without any explanations. There is just a red circle with a white exclamation m...
4年以上 前 | 1 件の回答 | 0
1
回答質問
How to use vectors instead of loops?
Hi, I am new to coding and I seem to be using too many loops/cells which significantly slows down my codes. I want to define a...
4年以上 前 | 0 件の回答 | 0
0
回答質問
How can I make this code faster?
<</matlabcentral/answers/uploaded_files/66372/SA.png>> Hi, I have a cell array, like the attached image, named SA. In ea...
8年以上 前 | 1 件の回答 | 0
1
回答質問
How can I place a cell array in another cell array using 'find'?
Hi, I have a 50x1 cell array (A = cell(50,1)), each cell has a 4x960 matrix(all elements are 0 or 1) in it, I want to this for...
8年以上 前 | 1 件の回答 | 0
1
回答質問
How can I sort a cell array according to one column's order?
Hi, I have a cell array of (50, 2), each cell in the first column contains a 4x960 matrix but the cells in the second column ar...
8年以上 前 | 1 件の回答 | 0
1
回答質問
How can I show equality in cell arrays?
Hi, I have an array like this: P = cell (50 , 5); each cell in the first column of this array is a 4x960 matrix with 0/1...
8年以上 前 | 1 件の回答 | 0
1
回答質問
Why do I get an index error?
Here in this part of my code r3 = randi([1 N],[G 1]); for i = 1:G ch = ceil(r3(i,1)/3840); [r, c] = ind2sub([4 960],...
8年以上 前 | 3 件の回答 | 0
3
回答質問
Why do I get subscript indices error?
Hi, I have a code like this, r2 = randi([2 64]); [m, n] = ind2sub([4 16],r2); n = (n-1)*60; CH1(m:end,n:...
8年以上 前 | 1 件の回答 | 0
1
回答質問
How does 'break' work?
Hi, I need to know what happens after "break"? what does the loop skip to? I need it to skip to "for i = 1:50" and start from a ...
8年以上 前 | 2 件の回答 | 0
2
回答質問
How to show a column of a cell array
Hi, I have a cell array, the first column is made up of 50 cell of 4x960, but the rest of the columns are 50 cells of 1x1, ...
8年以上 前 | 1 件の回答 | 0
1
回答質問
Cumulative sum of cell array column
Hi I have this cell array and I need to get the cumulative sum of column 7. Please help. A = Columns 1 through 3 ...
8年以上 前 | 2 件の回答 | 0
2
回答質問
How to count the values with a specific condition in different cells of an array?
<</matlabcentral/answers/uploaded_files/61614/Array.png>> Hi, I have an array that consists of cells with different lengths. ...
8年以上 前 | 0 件の回答 | 0
0
回答質問
How can I import Excel data in a cell array?
Hi, I have a cell array as I coded here: tt = cell (4,1); for i = 1:4 tt {i,1} = cell (16,1); for j = 1:16 ...
8年以上 前 | 2 件の回答 | 0
2
回答1
回答質問
How can I have the cumulative sum of the returned values of a function as a vector?
I want to have the cumulative sum of the returned values of AB function in a loop...I want the cumulative sum of the returned va...
8年以上 前 | 1 件の回答 | 0
1
回答質問
How can I use FIND to extract the indices of 1 elements in a 0/1 matrix?
I only have some 0/1 matrices and they are generated randomly. How can I define X like this: (please see Matrix image) The fi...
8年以上 前 | 1 件の回答 | 0