Answered

Checking invertiblity of a symbolic matrix (small size N=12)

remember that a matrix has an inverse if and only if its determinant is different from 0, therefore you must calculate for which...

Checking invertiblity of a symbolic matrix (small size N=12)

remember that a matrix has an inverse if and only if its determinant is different from 0, therefore you must calculate for which...

6 months ago | 0

Answered

Writing a frame to a video error

you need to rearrange some things: clear all;clc; filename1='x_recall_safeaudio_shockvideo.csv'; filename2='y_recall_safeau...

Writing a frame to a video error

you need to rearrange some things: clear all;clc; filename1='x_recall_safeaudio_shockvideo.csv'; filename2='y_recall_safeau...

6 months ago | 0

| accepted

Answered

How do I get specific rows from a matrices where a<= x<= b

newmatrix=data1(and(and(data1(:,1)<=10,data1(:,2)<=150),data1(:,2)>=75),:)

How do I get specific rows from a matrices where a<= x<= b

newmatrix=data1(and(and(data1(:,1)<=10,data1(:,2)<=150),data1(:,2)>=75),:)

7 months ago | 0

| accepted

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']

11 months 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))

11 months 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')

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

11 months 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')

11 months 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),:)=[]

11 months 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)

11 months 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=...

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

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

11 months 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 months 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 months 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 months 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 months 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 months 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 months 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 months 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 months 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 months ago

Solved

Roll the Dice!

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

11 months 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 months 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 months 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 months 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 months 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 months ago