Risolto


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

quasi 13 anni fa

Risolto


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

quasi 13 anni fa

Risolto


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

quasi 13 anni fa

Risolto


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

quasi 13 anni fa

Risolto


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

quasi 13 anni fa

Risolto


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

quasi 13 anni fa

Risolto


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

quasi 13 anni fa

Risolto


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

quasi 13 anni fa

Risolto


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

quasi 13 anni fa

Risolto


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

quasi 13 anni fa

Risolto


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

quasi 13 anni fa

Risolto


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

quasi 13 anni fa

Risolto


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

quasi 13 anni fa

Risolto


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

quasi 13 anni fa

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

quasi 13 anni fa | 2

| accettato

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

quasi 13 anni fa | 0

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

quasi 13 anni fa | 1

| accettato

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

circa 13 anni fa | 0

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

circa 13 anni fa | 0

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

circa 13 anni fa | 1

| accettato

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

circa 13 anni fa | 0

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

oltre 13 anni fa | 0

| accettato

Risposto
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]'; ...

oltre 13 anni fa | 1

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

oltre 13 anni fa | 0

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

oltre 13 anni fa | 1

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

oltre 13 anni fa | 0

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

oltre 13 anni fa | 0

| accettato

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

oltre 13 anni fa | 3

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

oltre 13 anni fa | 0

| accettato

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

oltre 13 anni fa | 1

| accettato

Carica altro