Answered

How can i find an equation from datas?

You may pick out a model first to fit your data onto. There a wide variety of models available in Matlab and the choice would de...

How can i find an equation from datas?

You may pick out a model first to fit your data onto. There a wide variety of models available in Matlab and the choice would de...

ungefär 2 år ago | 0

Answered

Read data from .txt file

I recommend trying the 'Import Data' button on the Home tab in the Matlab toolstrip. After selecting your .txt file in the tool,...

Read data from .txt file

I recommend trying the 'Import Data' button on the Home tab in the Matlab toolstrip. After selecting your .txt file in the tool,...

ungefär 2 år ago | 0

Answered

Invalid training data. The output size (2) of the last layer does not match the number of classes (6).

Hi Aswin, The number of outputs from your network would be determined by the last fullyConnectedLayer you have used. Since it h...

Invalid training data. The output size (2) of the last layer does not match the number of classes (6).

Hi Aswin, The number of outputs from your network would be determined by the last fullyConnectedLayer you have used. Since it h...

ungefär 2 år ago | 2

Answered

How to create body centered cubic structure?

You could create 2 different X/Y/Z combinations, each for corners and centre of the lattice. Then plotting them one after the ...

How to create body centered cubic structure?

You could create 2 different X/Y/Z combinations, each for corners and centre of the lattice. Then plotting them one after the ...

ungefär 2 år ago | 0

| accepted

Answered

matconvnet in online matlab

The problem is that since 'mex' command is not yet supported in Matlab Online, you cannot compile the source code as mentioned i...

matconvnet in online matlab

The problem is that since 'mex' command is not yet supported in Matlab Online, you cannot compile the source code as mentioned i...

ungefär 2 år ago | 0

Answered

How can I solve 6 different first order ODEs (Three DOF) with ODE45 in three different conditions

I'm not sure which script contains your constraints. In general, you may try writing a third script to invoke the first two from...

How can I solve 6 different first order ODEs (Three DOF) with ODE45 in three different conditions

I'm not sure which script contains your constraints. In general, you may try writing a third script to invoke the first two from...

ungefär 2 år ago | 0

Answered

how to build a histogram from an output with 2 vectors

Hi Heg, It seems that you haven't posted the code where the 'ga' algorithm is running and the results are obtained. In general...

how to build a histogram from an output with 2 vectors

Hi Heg, It seems that you haven't posted the code where the 'ga' algorithm is running and the results are obtained. In general...

ungefär 2 år ago | 0

Answered

Making a circle with circles

Hi Nicholas, I'm assuming you want smaller circles (r=1) to be arranged in a circular shape, i.e. where they form the perimente...

Making a circle with circles

Hi Nicholas, I'm assuming you want smaller circles (r=1) to be arranged in a circular shape, i.e. where they form the perimente...

ungefär 2 år ago | 0

Answered

unable to find function / Previously accessible file

Hi Malgorzata, Instead of saving the strings to a .m code file and executing that code, I suggest using eval() to have them po...

unable to find function / Previously accessible file

Hi Malgorzata, Instead of saving the strings to a .m code file and executing that code, I suggest using eval() to have them po...

ungefär 2 år ago | 0

Answered

What is the logic behind timedelaynet?

I belive this page explains the basic concepts. Wikipedia Entry You may read the following research papers to get a better u...

What is the logic behind timedelaynet?

I belive this page explains the basic concepts. Wikipedia Entry You may read the following research papers to get a better u...

ungefär 2 år ago | 0

| accepted

Answered

how to change dot notation to if else if structure, with while and for loops.

I'm not certain what sort of 'dot notation' is in question here. The '.' - dots in your code are multiplication operators. In M...

how to change dot notation to if else if structure, with while and for loops.

I'm not certain what sort of 'dot notation' is in question here. The '.' - dots in your code are multiplication operators. In M...

ungefär 2 år ago | 0

Answered

Matlab code for PRESENT and HIGHT

You may explore MATLAB File Exchange for such implementations. File Exchange is a platform for Matlab users to publicly share ...

Matlab code for PRESENT and HIGHT

You may explore MATLAB File Exchange for such implementations. File Exchange is a platform for Matlab users to publicly share ...

ungefär 2 år ago | 0

Answered

Function calling and executing from different .m files

Hi Jay, As an alternative, you may try saving the initialized matrix to disk (typucally as a .mat file) and loading it in the s...

Function calling and executing from different .m files

Hi Jay, As an alternative, you may try saving the initialized matrix to disk (typucally as a .mat file) and loading it in the s...

ungefär 2 år ago | 0

Answered

how to calculate classification accuracy

Hi Reen, I'm not sure which method you want to use for calculating an accuracy value, but here's one approach we may try: % ou...

how to calculate classification accuracy

Hi Reen, I'm not sure which method you want to use for calculating an accuracy value, but here's one approach we may try: % ou...

ungefär 2 år ago | 0

Answered

how to generate indices for the training data for all the possible combinations in leave n out cross validation?

Hi Harshan, You may use 'cvparition' function with 'leaveout' option specified. Have a read of the doc: https://www.mathwork...

how to generate indices for the training data for all the possible combinations in leave n out cross validation?

Hi Harshan, You may use 'cvparition' function with 'leaveout' option specified. Have a read of the doc: https://www.mathwork...

ungefär 2 år ago | 0

Answered

Multiply a column by -1, then do something. Do this for all possible combinations of the matrix

Hey Diego, I think you can attempt this problem using logical indexing. It's often faster to group all the combinations into a ...

Multiply a column by -1, then do something. Do this for all possible combinations of the matrix

Hey Diego, I think you can attempt this problem using logical indexing. It's often faster to group all the combinations into a ...

ungefär 2 år ago | 0

Answered

partially reduced row echelon form

Hey Christoph, You may try using the 'fast rref' function created on File Exchange by Armin Ataei. It may perform faster than ...

partially reduced row echelon form

Hey Christoph, You may try using the 'fast rref' function created on File Exchange by Armin Ataei. It may perform faster than ...

mer än 2 år ago | 0

| accepted

Answered

Having trouble rewriting a DICOM file with metadata: converting table to structure

Hi Johnathan, Your issue may be solved this way: % If 'T' is the variable holding the table, C = table2cell(T); C = C'; C...

Having trouble rewriting a DICOM file with metadata: converting table to structure

Hi Johnathan, Your issue may be solved this way: % If 'T' is the variable holding the table, C = table2cell(T); C = C'; C...

mer än 2 år ago | 2

Answered

How can I speed up nested loops?

Hi Yeray, I have a few suggestions for this vectorization, In the calculation of 'A' and 'B', the functions sind and cosd ca...

How can I speed up nested loops?

Hi Yeray, I have a few suggestions for this vectorization, In the calculation of 'A' and 'B', the functions sind and cosd ca...

mer än 2 år ago | 0

Answered

Error: "Subscripted assignment dimension mismatch."

I think you need to clear all variables and close all figures before running this code. Your code is working fine on my MATLAB ...

Error: "Subscripted assignment dimension mismatch."

I think you need to clear all variables and close all figures before running this code. Your code is working fine on my MATLAB ...

mer än 2 år ago | 0

Answered

How can i change places to pixel values(black ones to white, white ones to black) of binary image?

Hey Zuy, I don't think you can concatenate statements in matlab using '&&' - that is a logical operator, the kind that is used ...

How can i change places to pixel values(black ones to white, white ones to black) of binary image?

Hey Zuy, I don't think you can concatenate statements in matlab using '&&' - that is a logical operator, the kind that is used ...

mer än 2 år ago | 0

Answered

Replacing for loop in order to decrease run time

Hi Bastiaan, I think this way you can solve it. Below is how yo D = A(1, end-1) - B(1, end-1); D = [0; D] % ';' Assuming...

Replacing for loop in order to decrease run time

Hi Bastiaan, I think this way you can solve it. Below is how yo D = A(1, end-1) - B(1, end-1); D = [0; D] % ';' Assuming...

mer än 2 år ago | 0

Answered

fprint() to save uint8 in .txt file

You may save it using the '%d' formatting operator and save it line by line to a text file. Use '\n' for moving to the next line...

fprint() to save uint8 in .txt file

You may save it using the '%d' formatting operator and save it line by line to a text file. Use '\n' for moving to the next line...

mer än 2 år ago | 0

Answered

Question about Goodness of Fit

Please refer to the documentation on nlinfit which explains each of the output arguments in depth. https://in.mathworks.com/hel...

Question about Goodness of Fit

Please refer to the documentation on nlinfit which explains each of the output arguments in depth. https://in.mathworks.com/hel...

mer än 2 år ago | 0

Answered

Need help with "??? Undefined function or variable 'limit_2'. The first assignment to a local variable determines its class."

codegen fun -args {zeros(i,i),1} -nargout 3 I think you have forgotten to pass the third argument into the function. This leave...

Need help with "??? Undefined function or variable 'limit_2'. The first assignment to a local variable determines its class."

codegen fun -args {zeros(i,i),1} -nargout 3 I think you have forgotten to pass the third argument into the function. This leave...

mer än 2 år ago | 1

| accepted

Answered

How can I plot multiple rectangles (or circles) using the rectangle function without using a for loop?

I don't think there is a way to 'vectorize' this code, you can't eliminate this for loop and achieve much of a speed up. But how...

How can I plot multiple rectangles (or circles) using the rectangle function without using a for loop?

I don't think there is a way to 'vectorize' this code, you can't eliminate this for loop and achieve much of a speed up. But how...

mer än 2 år ago | 1

| accepted

Answered

Generalization of Catalan's conjecture

You may explore File Exchange for solutions or related code from which you can build your own solution. If you are attempting t...

Generalization of Catalan's conjecture

You may explore File Exchange for solutions or related code from which you can build your own solution. If you are attempting t...

mer än 2 år ago | 0

| accepted

Answered

Function 'range_calculator' has already been declared within this scope.

You may try removing the initialization of 'g' which is the first line in your function. In matlab, if you have code above the f...

Function 'range_calculator' has already been declared within this scope.

You may try removing the initialization of 'g' which is the first line in your function. In matlab, if you have code above the f...

mer än 2 år ago | 0

| accepted

Answered

Classification learner - Confusion matrix

Hi EK, You are correct about False Discovery Rates being the same as False Positives. However, I'm not sure which metric you m...

Classification learner - Confusion matrix

Hi EK, You are correct about False Discovery Rates being the same as False Positives. However, I'm not sure which metric you m...

mer än 2 år ago | 0

Answered

Finding adjacent pixels of a certain color around a blue pixel in an image

Hi Michael, Here's one way to do it:- Create 2 masks, one identifying all blue pixels and another identifying all pixels adja...

Finding adjacent pixels of a certain color around a blue pixel in an image

Hi Michael, Here's one way to do it:- Create 2 masks, one identifying all blue pixels and another identifying all pixels adja...

nästan 3 år ago | 0