photo

sznailc


Last seen: 1 year ago Active since 2021

Followers: 0   Following: 0

Statistics

  • Thankful Level 3

View badges

Feeds

View by

Question


I have a mistake in loops
Hello, I have somewhere a mistake that if N = 1000 the output misses some lines (don't know which), so I suppose there's a mista...

3 years ago | 1 answer | 0

1

answer

Question


Pythagorean triples - wrong output in loop
Hello, I have this piece of code, it computes pythagorean triples, then adds them in a matrix, but in output for some reason it ...

3 years ago | 1 answer | 0

1

answer

Question


How to avoid using a loop here?
Hello. I want to do the same thing without a loop. A = zeros(N); for m = 1:N for n = 1:N A(m, n) = 2*N + 1 - (m ...

3 years ago | 1 answer | 0

1

answer

Question


Remake this without a loop
How to rewrite this without using a loop? Basically I want to replace elements in matrix A with 0, that are equal to any of ele...

3 years ago | 2 answers | 0

2

answers

Question


How to create this matrix not using loops and if/else statements?
Hello. I have a problem with creating matrix like this without using loops and if/else statements. It must have 5 columns and N ...

3 years ago | 1 answer | 0

1

answer