A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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]

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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.

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

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

presque 10 ans il y a | 0

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

presque 10 ans il y a | 0

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

presque 10 ans il y a | 1

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

presque 10 ans il y a | 0

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

presque 10 ans il y a | 0

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

presque 10 ans il y a | 0

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

presque 10 ans il y a | 0

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

presque 10 ans il y a | 0

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

presque 10 ans il y a | 0

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

presque 10 ans il y a | 0

| A accepté

A répondu
SQL query with actxserver
Have you tried using fetch? a= DB.exec(query) data=fetch(a)

environ 10 ans il y a | 0

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

environ 10 ans il y a | 0

A résolu


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

plus de 10 ans il y a

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

plus de 10 ans il y a | 0

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

plus de 10 ans il y a | 0

Charger plus