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

mehr als 6 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...

mehr als 6 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...

mehr als 6 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...

mehr als 6 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...

mehr als 6 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...

mehr als 6 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...

mehr als 6 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 ...

mehr als 6 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 ...

mehr als 6 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...

mehr als 6 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.

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 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 ...

mehr als 6 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:...

mehr als 6 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...

mehr als 6 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) ...

mehr als 6 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...

mehr als 6 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 ...

mehr als 6 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...

mehr als 6 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

mehr als 6 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...

mehr als 6 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...

mehr als 6 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...

mehr als 6 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...

mehr als 6 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...

mehr als 6 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.

mehr als 6 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....

mehr als 6 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...

mehr als 6 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...

mehr als 6 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...

mehr als 6 Jahre vor | 0