Solved


Crop an Image
A grayscale image is represented as a matrix in MATLAB. Each matrix element represents a pixel in the image. An element value re...

mer än ett år ago

Solved


Verify Law of Large Numbers
If a large number of fair N-sided dice are rolled, the average of the simulated rolls is likely to be close to the mean of 1,2,....

mer än ett år ago

Solved


Find the Best Hotels
Given three input variables: * |hotels| - a list of hotel names * |ratings| - their ratings in a city * |cutoff| - the rat...

mer än ett år ago

Solved


Find MPG of Lightest Cars
The file |cars.mat| contains a table named |cars| with variables |Model|, |MPG|, |Horsepower|, |Weight|, and |Acceleration| for ...

mer än ett år ago

Solved


Calculate Inner Product
Given two input matrices, |x| and |y|, check if their inner dimensions match. * If they match, create an output variable |z|...

mer än ett år ago

Solved


Solve a System of Linear Equations
Example: If a system of linear equations in x₁ and x₂ is: 2x₁ + x₂ = 2 x₁ - 4 x₂ = 3 Then the coefficient matrix (A) is: 2 ...

mer än ett år ago

Solved


Rescale Scores
Each column (except last) of matrix X contains students' scores in a course assignment or a test. The last column has a weighted...

mer än ett år ago

Solved


Plot Damped Sinusoid
Given two vectors |t| and |y|, make a plot containing a blue ( |b| ) dashed ( |--| ) line of |y| versus |t|. Mark the minimum...

mer än ett år ago

Solved


Calculate a Damped Sinusoid
The equation of a damped sinusoid can be written as |y = A.ⅇ^(-λt)*cos(2πft)| where |A|, |λ|, and |f| ...

mer än ett år ago

Answered
Why is the run command not visible on my command bar (tool ribbon)?
Without more context i would guess that: a. you don't have a script open b. you are not in the editor

mer än ett år ago | 0

| accepted

Solved


Power Times (of the day)
Many times throughout the day can represent mathematical equations. In this problem, we focus on times that represent powers. Fo...

mer än ett år ago

Answered
How to write this fuction in Matlab? I have an example code in Python
b= @(r) b1 - ((b1-b2)*(r-r1))/(r2 -r1); where b1,b2,r1,r2 are constants

mer än ett år ago | 1

Answered
How to slove it (using matlab)
Try this: syms t x= (-2.41* 10^5)*(exp((-0.4607*t)))*sin(3.0003*t); %position expression v= diff(x); %speed as a first deriv...

mer än ett år ago | 0

| accepted

Question


Account migration to a new organization
Soon i will change my organization so i will need to migrate matlab to my new one. This implies: - a change in the email/...

mer än ett år ago | 1 answer | 0

1

answer

Answered
how to solve the following equation by using Matlab
Try with this function: function checksol(N) %N is the number of times it will solve the equation (dont use a huge number, 10 ...

mer än ett år ago | 0

| accepted

Answered
MATLAB switching between integer and floating numbers in a loop during computation
start_cell is always of type double during the entire execution. You can test it by debugging the code manually or by using the ...

mer än ett år ago | 0

Solved


Mersenne Primes vs. All Primes
A Mersenne prime (M) is a prime number of the form M = 2^p - 1, where p is another prime number. <https://www.mathworks.com/matl...

mer än ett år ago

Solved


Mersenne Primes
A Mersenne prime is a prime number of the form M = 2^p - 1, where p is another prime number. For example, 31 is a Mersenne prim...

mer än ett år ago

Answered
Update Inport/outport and signal names faster
The last time i had to do something similar i created a script along these lines: legend: action-(function i would use) load ...

mer än ett år ago | 0

Answered
How do I resolve GIT merge conflicts in MLDATX test manager file ?
Lately i'm experimenting with Git as well. The best, fastest and most reliable way to deal with conflicts is: when setting ...

mer än ett år ago | 0

Answered
How can I construct a for loop to read a multidimensional array from a single .nc file?
i would define L* as an array and populate it one element at a time, supposing tha the dimension (365) is fixed and known: L=ze...

mer än ett år ago | 0

Answered
How to write a code that takes the mean of values of same dates of other years and replaces the missing hourly value (NaN) of a specific day of a year by the mean value?
This works; function tt=nanfiller(tt) nanPos= find(ismissing(tt)==1); %finds position of NaN elements nanTime=tt.Time(nanPos)...

mer än ett år ago | 1

| accepted

Solved


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

mer än ett år ago

Answered
Morse potential constants using matlab
try this: syms D a ro ; %create symbolic scalar variables eq = V==D*(exp(-2*a*(r-ro))-2*exp(-a*(r-ro))); %create equation s...

mer än ett år ago | 0

Answered
how solve this problem in code execution
you declared Ms on line 8 as: Ms=1.22e06; but then on line on line 13 you syms it syms theta E1 E2 Ms theta so this 3 as...

mer än ett år ago | 0

| accepted

Solved


Replace Nonzero Numbers with 1
Given the matrix x, return the matrix y with non zero elements replaced with 1. Example: Input x = [ 1 2 0 0 0 ...

mer än ett år ago

Solved


frame of the matrix
Given the matrix M, return M without the external frame.

mer än ett år ago

Solved


Toeplitz Matrix
For a given square matrix of order n-by-n check whether this is a Toeplitz matrix or not. Return true if it is.

mer än ett år ago

Answered
Got this ''Empty sym: 0-by-1''
solve returns 'Empty sym: 0-by-1' when there is no explicit solution to the equation. The equation has no solution because of t...

mer än ett år ago | 0

Solved


Project Euler: Problem 10, Sum of Primes
The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below the input, N. Thank you <http:/...

mer än ett år ago

Load more