解決済み


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

約13年 前

解決済み


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

約13年 前

解決済み


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

約13年 前

解決済み


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

約13年 前

解決済み


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

約13年 前

解決済み


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

約13年 前

解決済み


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

約13年 前

解決済み


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

約13年 前

解決済み


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

約13年 前

解決済み


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

約13年 前

解決済み


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

約13年 前

解決済み


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

約13年 前

解決済み


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

約13年 前

解決済み


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

約13年 前

回答済み
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...

約13年 前 | 2

| 採用済み

回答済み
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...

約13年 前 | 0

回答済み
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...

約13年 前 | 1

| 採用済み

回答済み
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...

13年以上 前 | 0

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

13年以上 前 | 0

回答済み
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...

13年以上 前 | 1

| 採用済み

回答済み
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...

13年以上 前 | 0

回答済み
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...

13年以上 前 | 0

| 採用済み

回答済み
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]'; ...

13年以上 前 | 1

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 1

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

| 採用済み

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

14年弱 前 | 3

回答済み
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 (...

14年弱 前 | 0

| 採用済み

回答済み
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...

14年弱 前 | 1

| 採用済み

さらに読み込む