解決済み


Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

7年弱 前

解決済み


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

7年弱 前

解決済み


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

7年弱 前

解決済み


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

7年弱 前

回答済み
I have license Id but no activation key. how to get activation key?
Check this link <https://www.mathworks.com/matlabcentral/answers/102845-where-can-i-find-the-activation-key-or-file-installa...

7年弱 前 | 0

解決済み


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

7年弱 前

解決済み


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

7年弱 前

解決済み


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

7年弱 前

解決済み


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

7年弱 前

解決済み


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

7年弱 前

解決済み


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

7年弱 前

解決済み


Add two numbers
Given a and b, return the sum a+b in c.

7年弱 前

解決済み


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

7年弱 前

解決済み


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

7年弱 前

回答済み
How can I fill an empty matrix?
There are two points to note: 1. The piece of code below will overwrite Temporal's existing value at different values of i (w...

7年弱 前 | 0

回答済み
I have a problem when using the matlab. please help me.
For a trivial implementation, You can open the file, scan each line for the character _" * "_ (using _'contains'_ function) ...

7年弱 前 | 0

回答済み
run matlab as root (ubuntu)
1. Do take a look at the link and follow the steps to resolve license activation: <https://www.mathworks.com/matlabcentral/an...

7年弱 前 | 0

回答済み
Error using load Must be a string scalar or character vector
You imported the data and stored the stress values etc. inside a *struct A*. s1 should get the value from the structure instead ...

7年弱 前 | 0

回答済み
Unable to load Large S2P file (Size is 2MB) using read(rfdata.data ,'File Name'). while same file can be read using sparameters function
<https://www.mathworks.com/help/matlab/ref/tabulartextdatastore-properties.html#property_d119e1035627> By using _'read'_ comm...

7年弱 前 | 0

回答済み
Why do I have "License checkout failed" problem on MATLAB 2017b on Ubuntu 17.10 after I activate MATLAB?
Try accessing MATLAB as root? sudo su matlab

7年弱 前 | 0

回答済み
Appdesigner does not start in Matlab 2016
* Try the command below, restart MATLAB and open Appdesigner restoredefaultpath * In MATLAB, go to "Preferences -> MAT...

7年弱 前 | 0

回答済み
In 2016b, i cannot able to see the Code Generation Tab in Configuration parameters, I have Embedded Coder License
* Verify license using command - (should return 1) license('test','RTW_Embedded_Coder') * Type _'ver'_ in the command wi...

7年弱 前 | 0

| 採用済み

回答済み
Creation of double columns whose max size is 2 x 2 from a matrix whose size is n>2 x n>2 ( e.g. with n max = 800)
B = rand(2,4); count = 1; [xdim ydim] = size(B); for i=1:xdim-1 for j=1:ydim-1 C{count} = B(i:i+1,j:j+1); co...

7年弱 前 | 0

| 採用済み

回答済み
how do you Calculate the amplitude of the signal for a period of 1 second
This is a very trivial implementation of calculating max / min values of signal amplitude (sine in this case) at a particular ti...

7年弱 前 | 0

回答済み
bwboundaries is implemented using which tracing algorithm?
<https://www.mathworks.com/help/images/ref/bwboundaries.html> states that _"the bwboundaries function implements the Moore-Neigh...

7年弱 前 | 0

| 採用済み

回答済み
cell array contain zeros matrix
for i=1:100 a{i} = zeros(366,28); end Loop through each cell array block and insert a zeros matrix inside.

7年弱 前 | 1

| 採用済み

回答済み
Find elements from A in B and get the index of found element in B
You can use the _'intersect'_ command in order to extract the *common values* along with the *indices* from base arrays A and B....

7年弱 前 | 1

回答済み
How to draw a rectangle around a blob?
Hi Sachin, 1. *Using Rectangle:* You can use _variable names_ instead of _values_ in the *'rectangle'* command. You have the...

7年弱 前 | 1

回答済み
Save a column as a variable
Hi Lili, If I understand correctly, you fill the matrix c with data inside the _'for'_ loop and now you want to extract/copy...

7年弱 前 | 1

回答済み
Put in alphabet order a structure only by one field
Hello, Unfortunately, there is no direct way to sort a structure according to one of the field. The steps below involve trans...

7年弱 前 | 0