Answered
Finance program (New edit)
In the for loop, I think that you need to change delta_base(n) to D_Base(n) and delta_variabili_aleatorie(n) to D_Var(n). This ...

6 months ago | 0

Solved


middleAsColumn: Return all but first and last element as a column vector
Given input A, return all but the first and last elements, arranged as a column vector. (I.e., all dimensions after the first s...

6 months ago

Solved


Return elements unique to either input
Given two numeric inputs a and b, return a row vector that contains the numbers found in only a or only b, but not both. For ex...

6 months ago

Solved


Specific Element Count
Given a vector _v_ and a element _e_, return the number of occurrences of _e_ in _v_. Note: NaNs are equal and there may be n...

6 months ago

Solved


Summation of Non Zeros Numbers in String Variable
Find the Summation of Non Zeros Numbers in String Variable The input : x = '100205' The Output : y = 8

6 months ago

Answered
Display numeric value before function with using syms
You can include the unit when you define current: syms t; u=symunit; current = vpa(0.002*sin(10^3*t))*u.A; displayFormula("i...

7 months ago | 0

| accepted

Solved


Height of a right-angled triangle
Given numbers a, b and c, find the height of the right angled triangle with sides a and b and hypotenuse c, for the base c. If a...

7 months ago

Solved


Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
If p is the perimeter of a right angle triangle with integral length sides, { a, b, c }, there are exactly three solutions for p...

7 months ago

Answered
Please am looking for the license file path , i dont know where it is
See answer from Mathworks Support Team to a similar question: https://uk.mathworks.com/matlabcentral/answers/99147-where-can-i-...

7 months ago | 0

Answered
Python not recocgnising matlab.engine import
The error message is telling you that Python isn't able to locate the matlab package. It's difficult to know why this is withou...

7 months ago | 0

Answered
Old MCR version Installer or Workaround
For MATLAB/MCR versions before R2012a/7.17, the advice at: https://mathworks.com/products/compiler/matlab-runtime.html is: "Op...

7 months ago | 0

Solved


Calculate the area of a triangle between three points
Calculate the area of a triangle between three points: P1(X1,Y1) P2(X2,Y2) P3(X3,Y3) these three points are the vertices of ...

7 months ago

Answered
Unreadable operations when using symbolic functions
You can cast from symbolic values to numeric values, for example: syms z Gsymbolic = (5581285042669281*z^3)/9007199254740992 ....

7 months ago | 0

Solved


Find my daddy long leg (No 's')
Given the ratio of the two legs (longer / shorter), and the hypotenuse length, find the value of the bigger leg.

7 months ago

Solved


Remove the two elements next to NaN value
The aim is to *remove the two elements next to NaN values* inside a vector. For example: x = [6 10 5 8 9 NaN 23 9 7 3 21 ...

7 months ago

Solved


Get the elements of diagonal and antidiagonal for any m-by-n matrix
In the problem <http://www.mathworks.com/matlabcentral/cody/problems/858-permute-diagonal-and-antidiagonal Problem 858. Permute ...

7 months ago

Answered
source change in matlab online
The way that you're setting Desktop code font and Desktop text font looks right, but you don't see any effect because tools are ...

7 months ago | 0

Solved


Numerical Integration
Input * |x0|, a real number greater than 0 Output * |I|, a numerical estimate of the integral x0 / I...

7 months ago

Solved


Chess probability
The difference in the ratings between two players serves as a predictor of the outcome of a match (the <http://en.wikipedia.org/...

8 months ago

Solved


There are 10 types of people in the world
Those who know binary, and those who don't. The number 2015 is a palindrome in binary (11111011111 to be exact) Given a year...

8 months ago

Answered
Error using integral function with anonymous function
In your function call, you're passing T as a 6-element row vector and lambda as a 300-element row vector. Your function needs T...

8 months ago | 0

Answered
How can I get the license number of MATLAB 2023b?
See the accepted answer to a similar question: https://uk.mathworks.com/matlabcentral/answers/180390-how-do-i-find-my-matlab-li...

8 months ago | 1

Answered
I'm trying to sove this problem. Most of the code is given. Only the while loops must be done. I tried to do it but the calculations never ends.
You need to follow the suggestion given in the comment for the line: i_sineref = i_sineref ; % increment the "i_sinere...

8 months ago | 1

Solved


Force and Motion 3
Two robots push on a large object in the same direction. One robot pushes with a force of F1 Newtons and the other with a force...

8 months ago

Solved


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Input...

8 months ago

Solved


Matrix indexing with two vectors of indices
Given a matrix M and two index vectors a and b, return a row vector x where x(i) = M(a(i),b(i)).

9 months ago

Solved


Getting logical indexes
This is a basic MATLAB operation. It is for instructional purposes. --- Logical indexing works like this. thresh = 4...

9 months ago

Solved


Force and Motion 2
Two robots are pulling on an object in opposite directions. One robot pulls with a force of F1 Newtons and the other with a forc...

9 months ago

Solved


Guess Cipher
Guess the formula to transform strings as follows: 'Hello World!' --> 'Ifmmp Xpsme!' 'Can I help you?' --> 'Dbo J ifm...

10 months ago

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

10 months ago

Load more