Answered
How to check if the symbolic function yields real value?
Hi, i suggest to have a look at the isequal function. This appears to be what you want to do. Best regards Stephan

7 years ago | 0

| accepted

Answered
Draw candlestick chart by reading the data in excel file.
Hi, you can use the following code: Data = readtable('DAT_MT_EURAUD_M1_2018.csv'); Data = mergevars(Data,[1 2]); Data.Var1 =...

7 years ago | 0

| accepted

Answered
Solution of Non linear Equation
Hi, you convert symbolic solutions to double data type. This increases calculation speed, but costs accuracy. Try: % NonLinea...

7 years ago | 0

| accepted

Answered
how to solve system of nonlinear equation
Hi, vpasolve finds 3 solutions: syms Ns0 Nt0 k_rs = 3.2e7; k_ISC = 3.1e7; k_RISC = 5.6e3; k_ST = 2e-10; k_TT = 5e-15; ...

7 years ago | 0

| accepted

Answered
Represent parameters as other parameters
Hi, you can use isolate function: syms t1 t2 d3 h1 h2 x y z eq1 = -cos(t1)*(h2 - d3*cos(t2)) == x; eq2 = h1 + d3*sin(t2) == ...

7 years ago | 0

Answered
Im trying to plot an isotherm using the rosenthal equations, but when I run this script I get an 'Index exceeds array bounds' error.
Hi, you have 2 similar errors in your code. Matlab interprets: R(T-T0) as the (T-T0)'th element of an array called R. I suspe...

7 years ago | 0

Answered
6 set of equations, 6 unknowns, empty matrix error.
Hi which release do you use? The following code sets the 6 equations == 0 and produces a result on R2018b: MAx = -0.2376; MAy...

7 years ago | 1

| accepted

Answered
How to make a for loop to select x number of column in a table. (WITHOUT having the same number multiple time)
Hi, are you sure about having all possible combinations of 5 from 48? There are 1.712.304 possible combinations. You will find ...

7 years ago | 0

| accepted

Answered
use for loop to write a sum function to achieve halfsum
Hi, note the triu function: A = [1 2 3; 4 5 6; 7 8 9] result = sum(triu(A),'all') Best regards Stephan

7 years ago | 0

| accepted

Answered
Example from webinar: Quadcopter Modelling and Simulation: A Case Study for Encouraging Deeper Learning Engagements with Students by Bradley Horton
Hi, the link you provided is working for me: https://de.mathworks.com/videos/quadcopter-modelling-and-simulation-a-case-study-...

7 years ago | 0

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

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

7 years ago

Solved


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

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

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

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

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

7 years ago

Solved


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

7 years ago

Solved


Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....

7 years ago

Solved


Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2...

7 years ago

Solved


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

7 years ago

Solved


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

7 years ago

Answered
Matlab base licence Tools
Hi, all these are seperate toolboxes that have to be aquired seperatly to use their functions. The version numbers always depen...

7 years ago | 0

Answered
Solve a numerical equation
Hi, use another x0: myfunc = @(x) ((1/6)*abs(sin(x*6/2)/sin(x/2)))-1/sqrt(2); x0 = 1; fzero(myfunc,x0); This will make it w...

7 years ago | 0

| accepted

Answered
Unable to use function in script
Hi, you define an array as input arguments. Matlab interprets your array as one input argument, not as 8 as you think. This is ...

7 years ago | 1

| accepted

Answered
Solving Differential Equations Symbolically and Numerically
Hi, why do you have the 2.derivative in your code? I do only find the first derivative in your attached equation. Also i think ...

7 years ago | 0

| accepted

Answered
Undefined Function or Variable 'confusionchart'
Hi, confusionchart was introduced in R2018b. Since you are using R2018a it is not available. Update to R2018b to use it. To av...

7 years ago | 2

| accepted

Answered
Generating random variables with decimal points
10*rand(25,1)+20

7 years ago | 0

Answered
Release note of the update?
Hi, not a release note, but a little list of Bug Fixes in Update 2. I hope this helps. Best regards Stephan

7 years ago | 0

| accepted

Answered
Predictor Importance for Bagged Trees in Classification Learner App??
Hi, "I have sucessfully used BaggedTrees in the classificationLearner app to classify my data..." 1. Make sure to have exporte...

7 years ago | 1

| accepted

Load more