A résolu

Determine if input is odd

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

presque 11 ans il y a

A résolu

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

presque 11 ans il y a

A résolu

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]; and ...

presque 11 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 11 ans il y a

A résolu

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

presque 11 ans il y a

A répondu

Change what folder matlab starts up with

There's a doc page with examples on how to do this: <http://www.mathworks.com/help/releases/R2012a/techdoc/matlab_env/bs6j57e...

Change what folder matlab starts up with

There's a doc page with examples on how to do this: <http://www.mathworks.com/help/releases/R2012a/techdoc/matlab_env/bs6j57e...

presque 11 ans il y a | 1

| A accepté

A répondu

How can i combine two column of a matrix into one column?

You cannot mix data types inside of a matrix, but you could do this instead inside of a cell. For example A = magic(3); ...

How can i combine two column of a matrix into one column?

You cannot mix data types inside of a matrix, but you could do this instead inside of a cell. For example A = magic(3); ...

presque 11 ans il y a | 0

A répondu

Cells break disappear - Why?

Hi Cillian, I've had this happen a few times when MATLAB detects a syntax error in my code, usually a missing ). I think the cod...

Cells break disappear - Why?

Hi Cillian, I've had this happen a few times when MATLAB detects a syntax error in my code, usually a missing ). I think the cod...

presque 11 ans il y a | 2

A répondu

How To Calculate Max Deviation On A Line

Hi Kent, here's a quick solution I worked out. Assume you have your first column of data saved as 'x' and your second as 'y'. ...

How To Calculate Max Deviation On A Line

Hi Kent, here's a quick solution I worked out. Assume you have your first column of data saved as 'x' and your second as 'y'. ...

presque 11 ans il y a | 0

| A accepté

A répondu

How to skip command lines inside the loop

You can use either an if/else or switch/case structure to conditionally execute sections of code. The examples section in their ...

How to skip command lines inside the loop

You can use either an if/else or switch/case structure to conditionally execute sections of code. The examples section in their ...

presque 11 ans il y a | 0

A répondu

customize jet color bar, white at zero

The Examples section of the following doc page on the colormap editor contains the best easily available example I know of. You ...

customize jet color bar, white at zero

The Examples section of the following doc page on the colormap editor contains the best easily available example I know of. You ...

presque 11 ans il y a | 0

A répondu

MRC compiling error with GUI including xPC target simulink application

Hi Zhuo, your question has been answered in an earlier post, linked below. The short answer is, MATLAB Compiler does not support...

MRC compiling error with GUI including xPC target simulink application

Hi Zhuo, your question has been answered in an earlier post, linked below. The short answer is, MATLAB Compiler does not support...

presque 11 ans il y a | 0

| A accepté

A répondu

3D Surface plot - Surfc - alternate contour plane

I'm not familiar with any way to directly take side view projections, but you can always flip your inputs to SURFC to get the pr...

3D Surface plot - Surfc - alternate contour plane

I'm not familiar with any way to directly take side view projections, but you can always flip your inputs to SURFC to get the pr...

presque 11 ans il y a | 0

A répondu

Parallel Computing / Run Two Function Simultaneously

As long as F1 and F2 do not interact, and it looks like they don't, then you can do this through a simple PARFOR loop. Something...

Parallel Computing / Run Two Function Simultaneously

As long as F1 and F2 do not interact, and it looks like they don't, then you can do this through a simple PARFOR loop. Something...

presque 11 ans il y a | 1

A répondu

How to import a .cs file to matlab ?

I'm not familiar with C# myself, but I know you can't bring it in through a MEX file. We do have a section in the doc on using ....

How to import a .cs file to matlab ?

I'm not familiar with C# myself, but I know you can't bring it in through a MEX file. We do have a section in the doc on using ....

presque 11 ans il y a | 0

A répondu

Problems using different types of Excel Formats

How are you reading the data in? The XLSREAD function will automatically convert anything it sees as a date into a number. Using...

Problems using different types of Excel Formats

How are you reading the data in? The XLSREAD function will automatically convert anything it sees as a date into a number. Using...

presque 11 ans il y a | 0

| A accepté

A répondu

Limitation on poly and roots functions?

Note from the documentation: "For vectors, roots and poly are inverse functions of each other, up to ordering, scaling, and roun...

Limitation on poly and roots functions?

Note from the documentation: "For vectors, roots and poly are inverse functions of each other, up to ordering, scaling, and roun...

presque 11 ans il y a | 1

| A accepté

A répondu

How to connect the dots

You can use plot(x,var(x),'-o') to connect the dots. This draws a straight line from one to the next. EDIT: As Thom...

How to connect the dots

You can use plot(x,var(x),'-o') to connect the dots. This draws a straight line from one to the next. EDIT: As Thom...

presque 11 ans il y a | 0

A répondu

How to combine parfor & Parallel Optimization ?

You cannot directly nest a parfor loop inside of another as the MATLAB parser will catch it and throw an error before attempting...

How to combine parfor & Parallel Optimization ?

You cannot directly nest a parfor loop inside of another as the MATLAB parser will catch it and throw an error before attempting...

presque 11 ans il y a | 0

A répondu

Writing data to excel within a variable range

If all you're looking for is to not manually specify the range of the data you are writing, then you can do this fairly easily d...

Writing data to excel within a variable range

If all you're looking for is to not manually specify the range of the data you are writing, then you can do this fairly easily d...

presque 11 ans il y a | 1

| A accepté