Community Profile

photo

Hokkien


Last seen: 2 días ago Active since 2020

Statistics

  • Thankful Level 2

View badges

Content Feed

View by

Question


Return first few values to zero in a row
Hi I would like to change only the first few values in a row to zero? For example I have matrix A=[1 2 4 5 6 7 8 9 0 2 3 4 5 6]...

25 días ago | 2 answers | 0

2

answers

Question


If statement without loop
Hi there are two questions I wish to ask: First, I would like to use if else statement without the loop. Here is my attempt wit...

26 días ago | 2 answers | 0

2

answers

Question


Avoid "for", "if" and "else" loop
Hi I have a code like this: If there any way, that I can avoid for, if else loop? For now the k = 22, but most of the time and ...

4 meses ago | 1 answer | 0

1

answer

Question


Out of Memory. Infinite Recursion.
Hi all, I tried to run polylog with a set of matrix: Li = polylog(2,QED1); % QED1 is a (8887 x 1000) matrix. but...

5 meses ago | 1 answer | 0

1

answer

Question


Better Loop Structure to Execute Faster
Hi everyone, I have a sample loop as below: tic; for k=1:3500 for j=1:10000 A(j,k)=B(j,k)/(C(j,1)*0.001); end ...

9 meses ago | 1 answer | 0

1

answer

Question


How to sum from a particular cell to last cell in a single row.
Hi all! I wish to sum from particular cell to last cell in a single row. Example: I have a row A with values = [1 5 7 1 3 ...

10 meses ago | 1 answer | 0

1

answer

Question


How can I create matrix with parameter?
I wish to create a matrix based on different energy and its maximum recoil energy. The maximum recoil energy formula is T_max =...

más de 1 año ago | 1 answer | 0

1

answer