A résolu


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

presque 3 ans il y a

A résolu


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

presque 3 ans il y a

A résolu


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...

presque 3 ans il y a

A résolu


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 ...

presque 3 ans il y a

A répondu
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...

presque 3 ans il y a | 1

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

presque 3 ans il y a | 1

| A accepté

A répondu
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])) = [];

presque 3 ans il y a | 0

| A accepté

A répondu
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...

presque 3 ans il y a | 0

| A accepté

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

presque 3 ans il y a | 0

A répondu
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...

presque 3 ans il y a | 0

| A accepté

A répondu
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...

presque 3 ans il y a | 0

A répondu
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...

presque 3 ans il y a | 0

| A accepté

A répondu
Adding elements in column vectors
Hello, you can concatenate vectors and matrices vertically with a semicolon like this c = [a; b]; or concatenate them horizon...

presque 3 ans il y a | 0

| A accepté

A répondu
How to get all data from m-function?
Hello! The value A is the only one that gets output because that is what you specified in your function declaration. You could i...

presque 3 ans il y a | 1

| A accepté