Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

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

casi 13 años hace | 2

| aceptada

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

casi 13 años hace | 0

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

casi 13 años hace | 1

| aceptada

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

alrededor de 13 años hace | 0

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

alrededor de 13 años hace | 0

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

alrededor de 13 años hace | 1

| aceptada

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

alrededor de 13 años hace | 0

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

más de 13 años hace | 0

| aceptada

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

más de 13 años hace | 1

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

más de 13 años hace | 0

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

más de 13 años hace | 1

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

más de 13 años hace | 0

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

más de 13 años hace | 0

| aceptada

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

más de 13 años hace | 3

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

más de 13 años hace | 0

| aceptada

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

más de 13 años hace | 1

| aceptada

Cargar más