Solved

Column Removal

Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; ...

6 meses ago

Solved

Pizza!

Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

6 meses ago

Solved

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

6 meses ago

Solved

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

6 meses ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

6 meses ago

Solved

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

6 meses ago

Solved

Determine if input is odd

Given the input n, return true if n is odd or false if n is even.

6 meses ago

Answered

How to insert a row into a matrix? How to insert one element in a spot a matrix?

Z(1,:) = X; Z(:,1) = Y; Z(6,4) = 20;

How to insert a row into a matrix? How to insert one element in a spot a matrix?

Z(1,:) = X; Z(:,1) = Y; Z(6,4) = 20;

6 meses ago | 0

| accepted

Answered

Downloading GRIB files directly into Matlab

I would download nctoolbox from: https://github.com/nctoolbox/nctoolbox Below is some example code to get data using toolbox. ...

Downloading GRIB files directly into Matlab

I would download nctoolbox from: https://github.com/nctoolbox/nctoolbox Below is some example code to get data using toolbox. ...

8 meses ago | 1

| accepted

Answered

Question with interp3

First error I saw was you were using lat/lon vectors that were 0.75 degree resolution where the wind data was 1 degree resolutio...

Question with interp3

First error I saw was you were using lat/lon vectors that were 0.75 degree resolution where the wind data was 1 degree resolutio...

8 meses ago | 2

| accepted

Answered

CELL ARRAY AND FOR LOOP

Try this, if I am understanding your questions right: %cargo todas los puntos grilla puntos = 4; est = cell(puntos); for i=1...

CELL ARRAY AND FOR LOOP

Try this, if I am understanding your questions right: %cargo todas los puntos grilla puntos = 4; est = cell(puntos); for i=1...

8 meses ago | 0

| accepted

Question

Indexing 3-D matrix with 2-D matrix of indexes

I have a 3-D matrix that represents data for XYZ. I would like to pull the values from data given a 2-D matrix reprenting the Z ...

8 meses ago | 1 answer | 0

Answered

how to find column index of max value for each row of a matrix 378x5 size?

[~,I] = max(A,[],2)

how to find column index of max value for each row of a matrix 378x5 size?

[~,I] = max(A,[],2)

8 meses ago | 1

| accepted

Question

Find the last non-nan in large array

I have very large 4-dimensional arrays with dimensions being time,depth, lat, lon. I want to find the linear index in the depth ...

8 meses ago | 1 answer | 0

Question

how to place a legend in best corner?

Is there a way to place legend in the best corner of subplot. I do not like it when the legend is in middle of whitespace.

11 meses ago | 2 answers | 0