Question

Sum of numeric field boxes must equal 100 before user can press a plot button.

I have four numeric field boxes on app designer where the user inputs a value between and including 0 and 100 for each box. Once...

3 meses ago | 1 answer | 0

Question

Multiply nth elements of an array by an element of a different array?

I have the following code. I would like it to work such that if the first element of Ox is greater than zero, which in this cas...

3 meses ago | 1 answer | 0

Question

Combine arrays dependent on conditions?

I have the following code where depending on the user input, a 1 by 4 matrix will be generated called Ox, with values ranging fr...

3 meses ago | 1 answer | 0

Question

Code for filtering through elements of an array depending on criteria?

I have 256 different combinations which are all the possible resulting combinations of four modes: Mode1, Mode2, Mode3 and Mode4...

3 meses ago | 1 answer | 0

Question

Defining an array dependant on multiple user inputs

For this example, I have 2 independant modes, where each mode can be in state A, B, C or D, giving 16 possible combinations in t...

3 meses ago | 1 answer | 0

Question

How do I resolve 'Conversion to cell from double is not possible'?

I have this code creating a 1x3 cell array of 4x16 matrices. Then If a check box is ticked, the corresponding 4x16 zeros matrice...

3 meses ago | 1 answer | 0

Question

Automatically create variations of the same variable?

I have this code. At the moment there are only three check boxes giving the option for Type 1, 2 and 3. Multiple can be selected...

3 meses ago | 1 answer | 0

Question

Generate multiple matrices based on multiple inputs

I have this code that asks the user to input which type they would like to select out of 1 2 and 3. They can input multiple. It...

3 meses ago | 1 answer | 0

Question

Undefined variable when running appdesigner code

I have some code that works in normal matlab: if app.Maint_Select.Value == "Seal Coat" mat = xlsread('Maint.xlsx','B3:Q6')...

3 meses ago | 1 answer | 0

Question

Store matrices under different variable names within a loop?

I have a 4 by 16 matrix, say mat, and it can be random for this example. I would like to convert it into four seperate 4 by 4 ma...

3 meses ago | 1 answer | 0

Question

How to sum specific elements in a row of a matrix

I have a 256 by 256 matrix, lets say it is called m. I would like to sum specific elements from a specific row in that matrix. ...

3 meses ago | 2 answers | 0

Question

How to efficiently plot functions?

I have 12 curves I need to plot on a single graph. This is the current script I have where I have manually asked it to plot each...

3 meses ago | 2 answers | 0

Question

Use of kron with more than two matricies

I have four 4x4 matricies called: ox, ru, cr, po. I have been successful in using the Kronecker tensor product for two of the m...

3 meses ago | 1 answer | 0

Question

Using ode45 to solve odes from a matrix

This is the code I currently have. It works however I have had to manually input the four odes. (Line 8) My question is, what c...

4 meses ago | 1 answer | 0