A résolu


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

environ 8 ans il y a

A résolu


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

environ 8 ans il y a

A résolu


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

environ 8 ans il y a

A résolu


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

environ 8 ans il y a

Réponse apportée
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...

environ 8 ans il y a | 0

A résolu


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

environ 8 ans il y a

A résolu


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

environ 8 ans il y a

A résolu


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

environ 8 ans il y a

A résolu


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

environ 8 ans il y a

A résolu


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

environ 8 ans il y a

A résolu


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

environ 8 ans il y a

A résolu


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

environ 8 ans il y a

A résolu


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

environ 8 ans il y a

A résolu


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

environ 8 ans il y a

Réponse apportée
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...

environ 8 ans il y a | 0

Réponse apportée
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) ...

environ 8 ans il y a | 0

Réponse apportée
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...

environ 8 ans il y a | 0

Réponse apportée
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 ...

environ 8 ans il y a | 0

Réponse apportée
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...

environ 8 ans il y a | 0

Réponse apportée
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

environ 8 ans il y a | 0

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

environ 8 ans il y a | 0

Réponse apportée
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...

environ 8 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 8 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 8 ans il y a | 0

Réponse apportée
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...

environ 8 ans il y a | 0

| A accepté

Réponse apportée
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.

environ 8 ans il y a | 1

| A accepté

Réponse apportée
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....

environ 8 ans il y a | 1

Réponse apportée
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...

environ 8 ans il y a | 1

Réponse apportée
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...

environ 8 ans il y a | 1

Réponse apportée
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...

environ 8 ans il y a | 0