![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/4638578_1537299617629_DEF.jpg)
Nicole Peltier
University of Rochester
Followers: 0 Following: 0
統計
All
Feeds
回答済み
How can I remove certain points of the legend?
If the lines you want in the legend are the first things you plot (i.e., you plot all of them before you add the extra lines and...
How can I remove certain points of the legend?
If the lines you want in the legend are the first things you plot (i.e., you plot all of them before you add the extra lines and...
4年以上 前 | 0
解決済み
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 ...
4年以上 前
解決済み
Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...
4年以上 前
解決済み
Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...
4年以上 前
解決済み
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...
4年以上 前
回答済み
taking differences and moving averages
For column 3, look into diff. diff(x) = [x(2)-x(1), x(3)-x(2), ...] Keep in mind that diff will give you a vector with one les...
taking differences and moving averages
For column 3, look into diff. diff(x) = [x(2)-x(1), x(3)-x(2), ...] Keep in mind that diff will give you a vector with one les...
4年以上 前 | 0
| 採用済み
回答済み
Calculate the correlation coefficient between the first and the second measurement and the correlation coefficient between the first and the third measurement.
The function |corr| tests correlations between pairs of variables. You can actually test the correlations between several pairs ...
Calculate the correlation coefficient between the first and the second measurement and the correlation coefficient between the first and the third measurement.
The function |corr| tests correlations between pairs of variables. You can actually test the correlations between several pairs ...
6年以上 前 | 0
| 採用済み
回答済み
How to use selection from list menu
That |vertcat| line should produce an error because |ListString| is not the name of a variable (rather, it's a parameter that yo...
How to use selection from list menu
That |vertcat| line should produce an error because |ListString| is not the name of a variable (rather, it's a parameter that yo...
6年以上 前 | 2
| 採用済み
解決済み
Set the array elements whose value is 13 to 0
Input A either an array or a vector (which can be empty) Output B will be the same size as A . All elements of A equal to 13...
6年以上 前
解決済み
Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...
6年以上 前
解決済み
Project Euler: Problem 6, Natural numbers, squares and sums.
The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385 The square of the sum of the first ...
6年以上 前
解決済み
Fibonacci-Sum of Squares
Given the Fibonacci sequence defined by the following recursive relation, * F_n = F_(n-1) + F_(n-2) * where F_0 = 0 and F_1 ...
6年以上 前
解決済み
Project Euler: Problem 2, Sum of even Fibonacci
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 te...
6年以上 前
解決済み
Return the Fibonacci Sequence
Write a code which returns the Fibonacci Sequence such that the largest value in the sequence is less than the input integer N. ...
6年以上 前
解決済み
intersection of matrices
Given two matrices filled with ones and zeros, determine if they share a common row, column entry. These matrices are of identi...
6年以上 前
解決済み
Getting the indices from a matrice
Getting the indices from a matrice. Inspired by Problem 645. Getting the indices from a vector by the great Doug Hull. Given a...
6年以上 前
解決済み
Replicate elements in vectors
Replicate each element of a row vector (with NaN) a constant number of times. Examples n=2, A=[1 2 3] -> [1 1 2 2 3 3] ...
6年以上 前
解決済み
Generate N equally spaced intervals between -L and L
Given N and L, return a list of numbers (in ascending order) that divides the interval [-L L] into N equal-length segments. F...
6年以上 前
解決済み
We love vectorized solutions. Problem 1 : remove the row average.
Given a 2-d matrix, remove the row average from each row. Your solution MUST be vectorized. The solution will be tested for ac...
6年以上 前
回答済み
How can I write data from a for loop to following excel sheet columns?
I'm pretty sure at least part of it is that you declare AA inside the for-loop through the files. Each time the loop runs, it em...
How can I write data from a for loop to following excel sheet columns?
I'm pretty sure at least part of it is that you declare AA inside the for-loop through the files. Each time the loop runs, it em...
6年以上 前 | 0
回答済み
How to replace use of cell storage with use of arrays?
According to a previous time you posted about matrix_plantsubm.m on Matlab Answers (thanks Google!), it looks like G, X0, and Y0...
How to replace use of cell storage with use of arrays?
According to a previous time you posted about matrix_plantsubm.m on Matlab Answers (thanks Google!), it looks like G, X0, and Y0...
6年以上 前 | 2
| 採用済み
回答済み
How to make multiple loops?
The two sets of statements (where you put %%*statements* and %%*different_statements*) need to be in the same while loop. The co...
How to make multiple loops?
The two sets of statements (where you put %%*statements* and %%*different_statements*) need to be in the same while loop. The co...
6年以上 前 | 1
| 採用済み
解決済み
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.
6年以上 前
回答済み
Estimating the perimeter of irregular shape
My answer assumes that the starting point is the first and last item in the x and y vectors, so if that's not your case, you'll ...
Estimating the perimeter of irregular shape
My answer assumes that the starting point is the first and last item in the x and y vectors, so if that's not your case, you'll ...
6年以上 前 | 1
| 採用済み
解決済み
Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...
6年以上 前
回答済み
Recreate plot from image
You need to scale each parameter (MPG, Horsepower, etc.) by the maximum value of each parameter. I used repmat in my code so tha...
Recreate plot from image
You need to scale each parameter (MPG, Horsepower, etc.) by the maximum value of each parameter. I used repmat in my code so tha...
6年以上 前 | 0
| 採用済み