統計
ランク
of 148,733
コントリビューション
0 問題
0 解答
スコア
0
バッジ数
0
コントリビューション
0 投稿
コントリビューション
0 パブリック チャネル
平均評価
コントリビューション
0 ハイライト
平均いいねの数
Feeds
送信済み
A simple quaternion class
class with some basic operations on quaternions
11ヶ月 前 | ダウンロード 1 件 |
![Thumbnail](/matlabcentral/mlc-downloads/downloads/72d4d4af-4898-4d0f-aa3b-e93bf785556f/fca3f551-16da-4902-93ba-cb94b7959b3f/images/1696200564.png)
送信済み
discrete logarithm
compute the discrete logarithm using Shank's algorithm
11ヶ月 前 | ダウンロード 1 件 |
How to create an array of matrices?
function aM = arrayofmatrices(A,B,C) aM(:,:,1) = A; aM(:,:,2) = B; aM(:,:,3) = C; end This only works when A, B and C hav...
約1年 前 | 0
質問
I try to find a general vector base for all magic squares of dimension n . Why does this program work for n = 3, but not vor n > 3?
The program below is supposed to find a general vector base for all magic squares of dimension n . Why does this program work fo...
約1年 前 | 1 件の回答 | 0
1
回答How can i check if a matrix is magic square or not?
try: function ismagic = ismagic(M) %ISMAGIC checks if a matrix M is a magic square or not if size(M,1) ~= size(M,2) is...
約1年 前 | 0
How can i create array of symbolic expressions?
does this help? function array_of_symbolicExpressions(mx) syms t y(t); y(t) = t^3+t^2; % just an example d = diff(y); ...
約1年 前 | 0
送信済み
Simple Chess game
I tried to keep it "minimalistic", so strength isn't great.
2年弱 前 | ダウンロード 5 件 |
![Thumbnail](/matlabcentral/mlc-downloads/downloads/528fbeb0-c2c2-4b0f-a8a3-b440b21f2e36/6ec60ce7-6278-445d-9f00-e0d71db652de/images/1664229303.jpg)
送信済み
Two versions of Pollard's rho factorization algorithm
one version with Brent's style cycle detection, one without but using vectors and matrices
約2年 前 | ダウンロード 1 件 |
![Thumbnail](/matlabcentral/mlc-downloads/downloads/75b9eb3a-9d64-4295-bd9f-145cddf85490/5e4a4643-c23d-478e-b90a-7c8481dffe5a/images/1655482229.jpg)
送信済み
sieve of Erathostenes
a simple number sieve, which could (in theory) run forever, because it does not require an interval to be sieved.
約2年 前 | ダウンロード 1 件 |
![Thumbnail](/matlabcentral/mlc-downloads/downloads/050a0931-70cc-49fb-9760-a6d464ac0835/f6d5124c-0fa8-49f2-9221-dea92d9d89e6/images/1655480777.jpg)
質問
why is this Matlab Code faster than the C++ code below? I want to understand what Matlab internally does better and faster than C++
why is this Matlab Code function primes = sieve_era2(N) % sieve of Erathostenes without upper bound of search space (could th...
約2年 前 | 2 件の回答 | 2
2
回答送信済み
find zeros of the Riemann zeta function
This function finds zeros of the Riemann zeta function on the critical line 0.5 + i*t in an interval von <= t <= bis
2年以上 前 | ダウンロード 2 件 |
![Thumbnail](/matlabcentral/mlc-downloads/downloads/6dd96c37-83a9-4965-9f34-ca045dd7d204/96b541cd-15fd-4b88-ba96-7175580ab197/images/1607793900.jpg)
質問
Approximation of pi is "too precise" .
The function below should approximate pi adding about 2 digits of precision for increasing n. Why is piApprox2(3) exactly = pi ...
約3年 前 | 1 件の回答 | 0
1
回答送信済み
two ways to compute Riemanns prime counting function
one version which works (J2) and one which does not work (J1).
3年以上 前 | ダウンロード 1 件 |
![Thumbnail](/matlabcentral/mlc-downloads/downloads/dacae92c-9177-4443-8058-21d18cacdb2f/24e25ead-a9e7-4f6c-be6d-8e66f7c07ff4/images/1617042504.jpg)
質問
Cannot start Matlab - getting error "std::exception: Loading D:\Program Files\MATLAB\R2019b\bin\win64\matlab_startup_plugins\Imgrimpl\lib
When I start Matlab from the Desktop Icon or from the task bar, I get this error: "std::exception: Loading D:\Program Files\M...
3年以上 前 | 0 件の回答 | 4
0
回答送信済み
convert integer to binary or binary to integer
convert a column vetor of integers to a column vector of binaries or vice versa
3年以上 前 | ダウンロード 1 件 |
![Thumbnail](/matlabcentral/mlc-downloads/downloads/313ebfe1-7f7a-475c-b07f-68827dd2c40f/c1340f11-3e7c-4b31-b757-6c25e9e0af2c/images/1610322406.jpg)
送信済み
zetaRS approximates Riemann's zeta(0.5 + i*t) for large t
Fast computation of Riemann's zeta function on the critical strip using the Riemann Siegel formula.
3年以上 前 | ダウンロード 1 件 |
![Thumbnail](/matlabcentral/mlc-downloads/downloads/cbea0dce-eed4-4c83-98ed-a34fb9970276/1291564c-54e4-44cc-a8b2-e15491e9c3e8/images/1606162117.jpg)
質問
using fzero with arrayfun searching for zeros inside an interval
I have a function f = @(x) -x.^2+4 with a zero at -2 and +2 using fzero(f, [-3, 1.9]) I get the (correct) zero inside the inte...
3年以上 前 | 1 件の回答 | 0
1
回答送信済み
Create and run Turing machines
Some tools and examples for creating and simulating Turing machines and macro-Turing machines.
4年弱 前 | ダウンロード 1 件 |
![Thumbnail](/matlabcentral/mlc-downloads/downloads/09a08ad0-e82b-4f69-9b08-9a93aaae97d2/e88ab1ea-f866-41ac-aac2-2bdfe40b766f/images/1604607723.jpg)
送信済み
Computation of the rado function
More sophisticated check for endless loops, support for parallel execution and the use of macro-Turing-machines
約4年 前 | ダウンロード 1 件 |
![Thumbnail](/matlabcentral/mlc-downloads/downloads/7272bb33-3970-42c2-b3bf-3c1c2360aca2/f6735465-62ef-4b18-b861-477a67846e71/images/1595108120.jpg)
送信済み
uncover the call structure of a recursive function call
recurse(tree) helps to uncover the call structure of a recursive function call.
約4年 前 | ダウンロード 1 件 |
![Thumbnail](/matlabcentral/mlc-downloads/downloads/d168ebb4-d042-4dd4-9837-a1e481afdcf6/8440cf30-69df-4408-9027-94395814ac48/images/screenshot.jpg)
送信済み
GaussLegendre
quick approximation of pi using the Gauss-Legendre algorithm
約4年 前 | ダウンロード 2 件 |
![Thumbnail](/matlabcentral/mlc-downloads/downloads/f6df21f0-f4a8-4562-b582-141db7e3c592/426242b4-ecee-4994-a69a-f562dcd4f88c/images/screenshot.png)
送信済み
two versions of the Euler-phi function
two brief implementations of the Eulerphi function
約4年 前 | ダウンロード 1 件 |
![Thumbnail](/matlabcentral/mlc-downloads/downloads/721a3ba5-c9a9-4b05-8813-fe184bf6ddca/88b521a0-9375-4097-863c-dcc5d6496310/images/screenshot.jpg)
質問
Extract lines of a three dimensional matrix using an array of indices and NO for-loop
I have a three dimensional 10x5x2 array. Example: r(:,:,1) = [1 0 2 1 1; 2 0 3 1 1; 3 0 4 1 1; 4 0 1 1 -1; 5 0 -1 1 1; 1 1 3 1...
4年以上 前 | 1 件の回答 | 0
1
回答送信済み
Computation of Rado-function
Recursive computation of the "uncomputable" Rado-function.
4年以上 前 | ダウンロード 1 件 |
送信済み
Karatsuba algorithm for fast multiplication
Multiplication of "x" and "y" with Karatsuba method using base "base" x , y and base can be freely chosen
5年弱 前 | ダウンロード 1 件 |
送信済み
Shor Algorithm for prime factoring
A Version of the Shor-Algorithm for prime Factoring. Please feel free to comment on it or recommend improvements.
5年弱 前 | ダウンロード 4 件 |
質問
trying to compute Riemann's prime counting function J(x)
I am trying to compute Riemann's prime counting function J(x): J(x) should approximate the numbers of primes <= x using thi...
5年弱 前 | 2 件の回答 | 0
2
回答質問
isprime function seems to have poor performance
Why is MatLab's "isprime" function so much slower than Octave's "isprime" function? I am using MatLab's "isprime" function to c...
約5年 前 | 4 件の回答 | 2