Resuelto


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

más de 6 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...

más de 6 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...

más de 6 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...

más de 6 años hace

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

más de 6 años hace | 0

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

más de 6 años hace

Resuelto


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

más de 6 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 ...

más de 6 años hace

Resuelto


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

más de 6 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...

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 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:...

más de 6 años hace

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

más de 6 años hace | 0

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

más de 6 años hace | 0

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

más de 6 años hace | 0

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

más de 6 años hace | 0

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

más de 6 años hace | 0

Respondida
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

más de 6 años hace | 0

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

más de 6 años hace | 0

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

más de 6 años hace | 0

| aceptada

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

más de 6 años hace | 0

| aceptada

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

más de 6 años hace | 0

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

más de 6 años hace | 0

| aceptada

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

más de 6 años hace | 1

| aceptada

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

más de 6 años hace | 1

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

más de 6 años hace | 1

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

más de 6 años hace | 1

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

más de 6 años hace | 0