Community Profile # Max Heiken

Last seen: 2日 前 2021 以来アクティブ

#### Statistics

All
• • • • • • バッジを表示

#### Content Feed

Ranking values - sorting into descending order
If you do not expect there to be duplicates, I too recommend to use sort instead. [~, rnkR1List] = sort(X, 2, 'descend'); If y...

| 採用済み

Seeking an efficient method for using 'scatter3' to create a 3D scatter plot of fixed receiver positions.
I think you are looking for meshgrid. [y, x, z] = meshgrid(1:3, 1:3, 1:3); scatter3(x(:), y(:), z(:), [], amplitude(:), 'o', '...

2ヶ月 前 | 1

| 採用済み

Getting around overuse of "if" statements.
I agree with Srinik Ramayapally, employing switch is the most obvious change that comes to mind. To extend on that solution, you...

2ヶ月 前 | 0

Plot of 3D colour scatter graph
Since the erosion is specified per vertex, I think scatter3 is to be preferred over surf or mesh. I would start with something ...

3ヶ月 前 | 0

Why are pagemtimes, cross and pagetranspose functions slower on GPU?
Take everything I write with a grain of salt, since I have never used GPU features myself in the past and this is just from expe...

3ヶ月 前 | 0

Identify Ruth-Aaron numbers
After Hank Aaron hit his 715th home run and passed Babe Ruth’s total of 714, Carl Pomerance noticed that the union of the prime ...

3ヶ月 前

Find out sum and carry of Binary adder
Find out sum and carry of a binary adder if previous carry is given with two bits (x and y) for addition. Examples Previo...

3ヶ月 前

Convert given decimal number to binary number.
Convert given decimal number to binary number. Example x=10, then answer must be 1010.

3ヶ月 前

Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

3ヶ月 前

Kaprekar Steps
6174 is the <http://en.wikipedia.org/wiki/6174_%28number%29 Kaprekar constant>. All natural numbers less than 10,000 (except som...

3ヶ月 前

Read a column of numbers and interpolate missing data
Given an input cell array of strings s, pick out the second column and turn it into a row vector of data. Missing data will be i...

3ヶ月 前

Inner product of two vectors
Find the inner product of two vectors.

3ヶ月 前

Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

3ヶ月 前

Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

3ヶ月 前

Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

3ヶ月 前

How to link/connect pixel value with Image
I am not exactly sure if I get the context. If your image is in an axes, and if you want to click in that figure to programmati...

3ヶ月 前 | 1

How to add more values to an existing structure?
A.existingField = [A.existingField; newValues];

3ヶ月 前 | 1

| 採用済み

How to remove null matrices from a multidemensional array?
You could identify the all zero pages and remove them like this: Matrix(:, :, ~any(Matrix, [1, 2])) = [];

3ヶ月 前 | 0

| 採用済み

Error: Expected input to be a vector
It seems to me Cy and Cx must be column vectors, that is how I could reproduce the error. The function can only handle scalars f...

3ヶ月 前 | 0

| 採用済み

What is the most suitable way to plot how changes in two variables affect another variable?
Perhaps the surf plot does what you want?

3ヶ月 前 | 0

Print word with different name depending on the step of the cycle?
It seems you are coming from Python or similar. The print function is not used to output text, instead use disp, fprintf, or sp...

3ヶ月 前 | 0

| 採用済み

I'm plotting a solution to a PDE using surf but the graph turns out wrong?
The part with the sin is missing in your code. for n=1:10 u = u+(4/(n^3*pi^3)+(4/(n*pi)-4/(n^3*pi^3))*exp(-n^2*pi^2*t)).*si...

3ヶ月 前 | 0

How to define the geographic axes for multiple geoscatter data
Hello, what an interesting issue. One solution would be to wrap one of the longitudes around using modulo: long = mod(SuperMAG...

3ヶ月 前 | 0

| 採用済み