photo

Manne Plok


Aktiv seit 2018

Followers: 0   Following: 0

Statistik

  • Thankful Level 2
  • Thankful Level 1

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


Simple Question (I think) about finding zeros(and other number) in an array
I have the following array. R = [ 1 2 0 1 0 2] if values in R = 0 I want to replace it with 3, so I did If R == 0 ...

etwa 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Question with vectorisation?
Hello This is the code I have. n = 1:1000 A(n,1) = ceil(rand*5); What this does is it finds a random value between 1 ...

etwa 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Sorting based on the total value of the point in 3 layers
I have this 4*1*3 data data(:,:,1) = [12;23;0;2] data(:,:,2) = [2;1;8;25] data(:,:,3) = [3;9;4;0] And I want it to be...

etwa 6 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


Question about "min" command.
I have a code that generates the following 2D array: 0 300 7500 10800 76800 86700 36300 30000 10800 7500 7500 10800 3...

etwa 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Alternative to while loops without using loop?
Hi, are there any more efficient alternatives to while loops. eg a = zeros(3,1,3); b = ones(3,1,3); while isequal(...

etwa 6 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Remove my for loop using meshgrid?
[rows, ~, ~] = size(file) for i = 1:rows value = min(abs(file(i,:,1) - shadow(:,:,1)).^2); storage(i,:) = value...

etwa 6 Jahre vor | 1 Antwort | 0

1

Antwort