Gelöst


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

fast 7 Jahre vor

Gelöst


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

fast 7 Jahre vor

Gelöst


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

fast 7 Jahre vor

Gelöst


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

fast 7 Jahre vor

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

fast 7 Jahre vor | 0

Gelöst


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

fast 7 Jahre vor

Gelöst


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

fast 7 Jahre vor

Gelöst


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

fast 7 Jahre vor

Gelöst


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

fast 7 Jahre vor

Gelöst


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

fast 7 Jahre vor

Gelöst


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

fast 7 Jahre vor

Gelöst


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

fast 7 Jahre vor

Gelöst


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

fast 7 Jahre vor

Gelöst


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

fast 7 Jahre vor

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

fast 7 Jahre vor | 0

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

fast 7 Jahre vor | 0

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

fast 7 Jahre vor | 0

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

fast 7 Jahre vor | 0

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

fast 7 Jahre vor | 0

Beantwortet
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

fast 7 Jahre vor | 0

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

fast 7 Jahre vor | 0

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

fast 7 Jahre vor | 0

| akzeptiert

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

fast 7 Jahre vor | 0

| akzeptiert

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

fast 7 Jahre vor | 0

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

fast 7 Jahre vor | 0

| akzeptiert

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

fast 7 Jahre vor | 1

| akzeptiert

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

fast 7 Jahre vor | 1

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

fast 7 Jahre vor | 1

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

fast 7 Jahre vor | 1

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

fast 7 Jahre vor | 0