Feeds
提问
Error using the randi function
Here is my code: function EPS Score=zeros(1,20); X=[0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1]; for j=1:20 ...
7 years 前 | 1 个回答 | 0
1
个回答提问
Issue with making an array
Here is my code: function Tfunc(a,b) a = (-(a-1)/a); b = (-(b-1)/b); for i = 1:30000 Approximation_...
8 years 前 | 1 个回答 | 0
1
个回答提问
Syntax for work space output and multiple variables to work space
Hi, I am trying to run a program and output more than one variable. Not sure on the syntax, but here is what I am going for: ...
8 years 前 | 1 个回答 | 0
1
个回答提问
How do I create a header with many elements, but has function outputs in it as well?
I am trying to create a header for a large matrix. The matrix looks something like this: A = [100, 101, 102, ..., 999 ...
8 years 前 | 1 个回答 | 0
1
个回答提问
Why is the 'sum' function also outputting elements of my matrix?
I have a column vector that I am trying to take the sum of, but I want it to display only the sum. Every time I use the sum func...
8 years 前 | 1 个回答 | 0
1
个回答提问
Is there a way to change format of Mat lab workspace?
Hi, so I used the function 'format bank' in the *command window* before running my code. After running my code, it sends my data...
8 years 前 | 1 个回答 | 0
1
个回答已提交
Primitive Root Function w/ Euler's Totient
My own developed code to find the primitive roots of a number
9 years 前 | 3 次下载 |
提问
Possible to mod a number in the middle of a cycle?
Here is a portion of my code I need help with: for m = 1:k for j = 1:FEE number = m.^j; if number >= 10...
9 years 前 | 2 个回答 | 0
2
个回答提问
Cannot find where I am hitting recursion limit
Hi, matlab continues to tell me that I am getting a recursion limit problem with this code and I can't seem to see where my code...
9 years 前 | 1 个回答 | 1
1
个回答提问
Help with calling functions / too many outputs?
Hi, here I have listed two functions, the first (part of PR) which calls the second (phi) on the last line. Every time I try...
9 years 前 | 1 个回答 | 0
1
个回答提问
Why is my modulus messing up?
Here is my code, it is my own take on creating Pollard's method using Matlab. For most numbers it works great, but if you use a ...
9 years 前 | 1 个回答 | 0
1
个回答提问
How to track numbers in the MATLAB excel sheet?
I asked a function to run which produces a lot of numbers which I then can see in the MATLAB excel sheet. Is there a way to find...
10 years 前 | 1 个回答 | 0
1
个回答已回答
Need help with leading zeroes being eaten in my function
Thanks guys, give me a few days to work with these methods and I will get back to you soon.
Need help with leading zeroes being eaten in my function
Thanks guys, give me a few days to work with these methods and I will get back to you soon.
10 years 前 | 0
提问
Need help with leading zeroes being eaten in my function
I have a function that re arranges digits of a number and then subtracts them, but if the number is a single digit, I want it to...
10 years 前 | 3 个回答 | 0