Answered

Add value in a matrix

ZORD=sortrows(Z',4)'; [~,~,C]=unique(ZORD(end,:)); ZFIN=[ZORD; C']

Add value in a matrix

ZORD=sortrows(Z',4)'; [~,~,C]=unique(ZORD(end,:)); ZFIN=[ZORD; C']

6 days ago | 1

| accepted

Answered

how to know if a char vector contains unwanted characters?

y=["5","6","10"];%y example condition=all(ismember(y,x))

how to know if a char vector contains unwanted characters?

y=["5","6","10"];%y example condition=all(ismember(y,x))

8 days ago | 0

Answered

How to eliminate duplicate rows in an array without changing their orders?

D=unique(DOM,'rows','stable')

How to eliminate duplicate rows in an array without changing their orders?

D=unique(DOM,'rows','stable')

8 days ago | 1

| accepted

Answered

Convert Matlab CNN to c# to be used in .net desktop app.

yes you can Generate a .NET Assembly and Build a .NET Application with Matlab Compiler you can use the exportONNXNetwork funct...

Convert Matlab CNN to c# to be used in .net desktop app.

yes you can Generate a .NET Assembly and Build a .NET Application with Matlab Compiler you can use the exportONNXNetwork funct...

8 days ago | 0

| accepted

Answered

How to extract some rows from a matrix and put them in another matrix?

setdiff(Q,N,'rows')

How to extract some rows from a matrix and put them in another matrix?

setdiff(Q,N,'rows')

9 days ago | 0

Answered

Deleting a row y from a matrix

A(all(A==y,2),:)=[] edit previous versions: A(all(A==repmat(y,size(A,1),1),2),:)=[]

Deleting a row y from a matrix

A(all(A==y,2),:)=[] edit previous versions: A(all(A==repmat(y,size(A,1),1),2),:)=[]

9 days ago | 0

Answered

Filtrar datos cada n pasos en el tiempo de una matriz

matrizoriginal=0:0.0001:49 ; nuevamatriz=matrizoriginal(1:1000:end)

Filtrar datos cada n pasos en el tiempo de una matriz

matrizoriginal=0:0.0001:49 ; nuevamatriz=matrizoriginal(1:1000:end)

10 days ago | 0

Answered

buenas alguien sabe como puedo poner en una formula numeros aleatorios normalmente distribuidos?

mira la documentación : https://la.mathworks.com/help/matlab/ref/randn.html números aleatorios normalmente distribuidos : n=...

buenas alguien sabe como puedo poner en una formula numeros aleatorios normalmente distribuidos?

mira la documentación : https://la.mathworks.com/help/matlab/ref/randn.html números aleatorios normalmente distribuidos : n=...

10 days ago | 0

Answered

Alguien me puede ayudar excel y matlab

para el que le sirva aquí está la documentación oficial para plotear funciones de transferencia y las respuestas del sistema : h...

Alguien me puede ayudar excel y matlab

para el que le sirva aquí está la documentación oficial para plotear funciones de transferencia y las respuestas del sistema : h...

10 days ago | 0

Answered

Sum of integers up to n using a while loop

try it yourself with a for (see documentation) https://www.mathworks.com/help/matlab/ref/for.html You can be guided by this ex...

Sum of integers up to n using a while loop

try it yourself with a for (see documentation) https://www.mathworks.com/help/matlab/ref/for.html You can be guided by this ex...

10 days ago | 1

| accepted

Answered

Why sometimes we place an empty brackets inside function inputs?

means that the second value the function receives is empty, in both cases if you give a value to that second parameter to "min"...

Why sometimes we place an empty brackets inside function inputs?

means that the second value the function receives is empty, in both cases if you give a value to that second parameter to "min"...

11 days ago | 0

| accepted

Answered

how to fix this upper directory link?

File_W = fullfile(app.Path, '..', 'MyFolder', [fileName, '_myFormat_.xlsx']); writetable(T1, File_W); a=dir(File_W); namefold...

how to fix this upper directory link?

File_W = fullfile(app.Path, '..', 'MyFolder', [fileName, '_myFormat_.xlsx']); writetable(T1, File_W); a=dir(File_W); namefold...

11 days ago | 0

| accepted

Answered

Datetime problem of converting string

hh is uppercase D=datetime('2019/09/05 19:02:11', 'InputFormat','yyyy/MM/dd HH:mm:ss')

Datetime problem of converting string

hh is uppercase D=datetime('2019/09/05 19:02:11', 'InputFormat','yyyy/MM/dd HH:mm:ss')

11 days ago | 0

| accepted

Answered

question on indexing: How to extract rows from a matrix that crossponds to certain values in another vector?

FF=unique(Ro(ranks==3,:),'rows')

question on indexing: How to extract rows from a matrix that crossponds to certain values in another vector?

FF=unique(Ro(ranks==3,:),'rows')

11 days ago | 0

Answered

Error : Subscript indices must either be real positive integers or logicals.

you missed a "*" here : 2*g1*(2*..... and many "." ./ g1 = 1.4; R1 = 287; T = 283.15; g4 = 1.667; R2 = 2077; a1 = sqr...

Error : Subscript indices must either be real positive integers or logicals.

you missed a "*" here : 2*g1*(2*..... and many "." ./ g1 = 1.4; R1 = 287; T = 283.15; g4 = 1.667; R2 = 2077; a1 = sqr...

11 days ago | 0

Answered

Matrix Input Layer for Deep Neural Networks

The wonderful thing about Matlab is that almost everything is seen as matrices or vectors, in fact this is not a disadvantage bu...

Matrix Input Layer for Deep Neural Networks

The wonderful thing about Matlab is that almost everything is seen as matrices or vectors, in fact this is not a disadvantage bu...

11 days ago | 0

Solved

Sum all integers from 1 to 2^n

Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

11 days ago

Solved

Magic is simple (for beginners)

Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

11 days ago

Solved

Make a random, non-repeating vector.

This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

11 days ago

Solved

Roll the Dice!

*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...

11 days ago

Solved

Number of 1s in a binary string

Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...

11 days ago

Solved

Return the first and last character of a string

Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

11 days ago

Solved

Create times-tables

At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

11 days ago

Solved

Getting the indices from a vector

This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to <http://www.mathworks....

11 days ago

Solved

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

11 days ago

Solved

Check if number exists in vector

Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

11 days ago

Solved

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

11 days ago

Solved

Swap the input arguments

Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

11 days ago