Solved


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

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

12 years ago

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

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

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

12 years ago

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

12 years ago | 1

| accepted

Answered
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); ...

12 years ago | 0

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

12 years ago | 2

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

12 years ago | 0

| accepted

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 0

| accepted

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

12 years ago | 0

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

12 years ago | 1

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

12 years ago | 0

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

12 years ago | 0

| accepted

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

12 years ago | 1

| accepted

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 1

| accepted