Feeds
提问
How do I save matrices from specific points in a for loop?
for n = 1:100 %first for loop for i = 2:end-1, second for loop for j = 2: end-1 ...
7 years 前 | 1 个回答 | 0
1
个回答提问
Manipulating arrays within a cell array
I have a cell array, A_C which has 401 cells (1x401) each with arrays of varying sizes, but same dimensionality. I'm trying to...
8 years 前 | 2 个回答 | 0
2
个回答提问
For loop output each iteration to cell array
I have some code below, the problem I'm having is that I want to output each iteration into the cell array P_SUM, and not just t...
8 years 前 | 1 个回答 | 0
1
个回答提问
Nested for loop and cell arrays
I have a cell array, A, containing 40 cells, each of different sizes. I need to use each of these cells (let's call one, A1(1x10...
8 years 前 | 1 个回答 | 0
1
个回答提问
cellfun for function with multiple inputs
I want to apply a function to every cell within a cell array, so using cellfun seems the logical way to go. But the function req...
8 years 前 | 1 个回答 | 3
1
个回答已回答
Manipulating arrays within a cell array
for n = 1:l xs_current1{n} = xs_current1{1,n}/num_point_sources(1,n); end
Manipulating arrays within a cell array
for n = 1:l xs_current1{n} = xs_current1{1,n}/num_point_sources(1,n); end
8 years 前 | 0
提问
Summing arrays within a cell array.
I've got a cell array which consists of 501 4D arrays, I want to sum all of these together and output a single 4D array. I've ...
8 years 前 | 1 个回答 | 0
1
个回答提问
Output each for loop iteration to separate arrays
I have a function which relies on a few inputs, all of these inputs will be the same for each iteration apart from one which wil...
8 years 前 | 1 个回答 | 0
1
个回答提问
Contourf colour doesn't display correct values.
I have a contourf plot shown below, the problem I'm having is that the ring is supposed to be almost white; the values in the ma...
8 years 前 | 1 个回答 | 0
1
个回答提问
Repeat elements in an array for certain number of cycles
I have a 61x1 array, G, I want to make a new array G_2, where the 61 elements of G are repeated for 5 cycles. For example: G...
8 years 前 | 1 个回答 | 1
1
个回答提问
Replacing values in a 4D array.
This is a question arising from this thread: <https://www.mathworks.com/matlabcentral/answers/374453-round-number-closest-to-0-i...
8 years 前 | 1 个回答 | 0
1
个回答提问
Round number closest to 0 in array
I have an array with numbers which are all really small (-9e-07 upto 2e+06). I want to round the values in each column of a 4D a...
8 years 前 | 1 个回答 | 0
1
个回答提问
How to ignore values in an array
I'm creating an array [array 1] that fulfills the formula (A - B/C), where A and B are matrices with different elements and C is...
8 years 前 | 2 个回答 | 0
2
个回答提问
Comparing matrices of different dimensions
I have 3 matrices, one is a 1x301 array,A, one is a scalar value,B, and the 3rd is 10x10x10 array,C. I need to be able to do: A-...
8 years 前 | 1 个回答 | 0
1
个回答提问
Creating a 4D array.
I have a 3D array, P_3D, which has the dimensions 1x301x1000. I want to make this a four dimensional array by 'inserting' anothe...
8 years 前 | 1 个回答 | 0
