Solved


Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...

10 years ago

Solved


The Goldbach Conjecture
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

10 years ago

Solved


The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

10 years ago

Solved


How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

10 years ago

Solved


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

10 years ago

Solved


Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

10 years ago

Solved


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

10 years ago

Solved


Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

10 years ago

Solved


Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

10 years ago

Solved


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

10 years ago

Solved


Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

10 years ago

Solved


Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

10 years ago

Solved


Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

10 years ago

Solved


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

10 years ago

Solved


Fahrenheit to Celsius using multiple statements
Given a Fahrenheit value F, convert to a Celsius value C. While the equation is C = 5/9 * (F - 32), as an exercise use two state...

10 years ago

Answered
Invalid MEX-file, likely missing .dll
Have you tried the database toolbox? http://www.mathworks.com/help/database/index.html

10 years ago | 0

Answered
Simulink Sfunction Error - not a valid Win32 application
It is possible that the bitness of the S function and MATLAB or some of the modules have a bitness mismatch. Is it possible that...

10 years ago | 0

Answered
Could not find version 7.14 of the MCR
Hi Grigory, Can you check your PATH variable to see if the MCR path to mclmcrrt7_14.dll is ahead than the path to the corresp...

10 years ago | 1

Answered
MATLAB deploytool not working, fails while building.
Firstly, the JDK version that you have on your machine does not match the one that is supported by MATLAB. To find out what vers...

10 years ago | 0

Answered
I have had an issue in MATLAB 2013a.
Are you using a supported compiler for R2013a? http://www.mathworks.com/support/compilers/R2013a/index.html?sec=win64 Afte...

10 years ago | 0

Answered
Compiler error in 2014a
Even though this warning appears, you should be able to package your code into an executable successfully. If the code does not ...

10 years ago | 0

Answered
Problem with compilation and deployment - warning_message_prefix
Hi Lorenzo, Does the compilation of a simple exe work? Can you paste the entire build log from deploytool or the verbose outp...

10 years ago | 0

Answered
How to compile and install without MCR?
Hi Jake, Maybe you should try using the executable from the for_testing folder instead. That has no trace of the MCR, and sho...

10 years ago | 0

Answered
Is it possible to change frequency of hardware generated PWM on the fly?
Nope, properties for background operations cannot be changed. You have to pause the background operation, and then change the pr...

10 years ago | 0

Answered
What username and password should I enter in 'Connect to a Data Source' window of Database toolbox?
The username and password are a set of credentials that the database toolbox can accept. This information can be found in your d...

10 years ago | 0

| accepted

Answered
SQL query with actxserver
Have you tried using fetch? a= DB.exec(query) data=fetch(a)

11 years ago | 0

Answered
Problem in image acquisition
Are you using a supported camera? Have you installed all the necessary drivers? What version of MATLAB are you using?

11 years ago | 0

Solved


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

11 years ago

Answered
intel c++ composer 2011 with SKD 7.1 and R2013a
It is possible that the Intel Composer settings are embedded in the SDK installation. Are you able to successfully compile a sma...

11 years ago | 0

Answered
how to interface beagleboard with matlab simulink?
You can look at this Mathworks page for beagleboard: http://www.mathworks.com/hardware-support/beagleboard.html

11 years ago | 0

Load more