Solved


Find the alphabetic word product
If the input string s is a word like 'hello', then the output word product p is a number based on the correspondence a=1, b=2, ....

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

12 years ago

Solved


Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

12 years ago

Solved


Which values occur exactly three times?
Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

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


Binary numbers
Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

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

12 years ago

Solved


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

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

12 years ago

Solved


Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

12 years ago

Solved


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

12 years ago

Solved


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

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

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
Code testing without DAQ Hardware
NI-DAQmx and the Measurement & Automation Explorer will allow you to create a simulated device. In MATLAB, the simulated device...

12 years ago | 2

| accepted

Answered
GPIB access with Mac Lion (10.7.2) ?
GPIB is not supported on Mac OS in the Instrument Control Toolbox. For 64-bit Mac OS, the Instrument Control Toolbox supports s...

12 years ago | 0

Answered
Huge Execution Time Discrepancy with line() Command
Are you expecting each call to 'line' to draw 15999 lines or just one line? If it is the latter, try this instead: line([1...

12 years ago | 1

| accepted

Answered
data acquisition toolbox: nidaq adaptors problem (NI 9213)
Have you tried registering the NIDAQ adaptor DLL? Execute the following commands in MATLAB, making sure you're logged into Wind...

12 years ago | 0

Answered
Using IVI-COM IviRfSigGen to generate an ARB signal
Try this: sig_gen.RF.OutputEnabled = true;

12 years ago | 0

Answered
UDP in matlab
To receive multiple messages, you need to put a loop in the PC2 code. Something like this: u2 = udp('192.168.1.2', 'RemotePo...

12 years ago | 1

| accepted

Answered
Problem registering devices for data acquisition (mcc and winsound)
Are you logged into Windows as an administrator? In order to register an adaptor you must be logged in with administrator privi...

12 years ago | 0

Answered
Binary waveform data transfer too short (but ASCII ok) from Agilent scope through GPIB
Since in the BYTE or WORD case the waveform data is binary format instead of an ASCII string, the <http://www.mathworks.com/help...

12 years ago | 0

| accepted

Answered
Data size mismatch..
Assuming you want "data" to be the row vector "b" appended to row vector "a" to create one long row vector: data = [a;b]'; ...

12 years ago | 1

Answered
How to put the lengths of each string in a cell array of strings into a single vector?
Not a particularly elegant solution, but it works: >> a={'the', 'quick', 'brown', 'fox'} a = 'the' 'q...

13 years ago | 0

Answered
surface fitting1
To do surface fitting you need to define your X and Y data vectors. X=1:77; Y=1:77; % Or any other vectors of 77 points Then...

13 years ago | 1

Answered
ascii data type
Since ASCII characters are encoded as unsigned 8-bit integers, you can store them as a UINT8 data type in MATLAB. You can use t...

13 years ago | 0

Answered
Simulink library browser shows "No blocks"
This may be related to <http://www.mathworks.com/support/bugreports/details.html?rp=673978 bug report 673978>.

13 years ago | 0

| accepted

Answered
Error in Simulink
When your block diagram contains Simscape components, the physical network circuit must be connected to at least one <http://www...

13 years ago | 3

Answered
Example is wrong => zero-phase filter - filtfilt(ver. 2009a)
It looks like the documentation for FILTFILT was changed since R2009a. The page you're looking at is the latest documentation (...

13 years ago | 0

| accepted

Answered
Perform mapping of 16 point ifft using cosimulation
"IOB" refers to the input/output pins on the FPGA. So the design you are implementing has too many inputs and outputs (or the w...

13 years ago | 1

| accepted

Load more