已解决


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

2 years 前

已解决


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

2 years 前

已解决


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

2 years 前

已解决


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

2 years 前

已解决


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

2 years 前

已解决


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

2 years 前

已解决


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

2 years 前

已解决


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

2 years 前

已解决


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

2 years 前

已回答
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

2 years 前 | 0

| 已接受

已解决


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

2 years 前

已回答
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

2 years 前 | 1

已回答
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...

2 years 前 | 0

| 已接受

提问


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

2 years 前 | 1 个回答 | 0

1

个回答

已回答
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 ...

2 years 前 | 0

| 已接受

已回答
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 ...

2 years 前 | 0

已解决


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

2 years 前

已解决


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

2 years 前

已回答
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 ...

2 years 前 | 0

已回答
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 ...

2 years 前 | 0

已回答
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...

2 years 前 | 0

已回答
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)...

2 years 前 | 1

| 已接受

已解决


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

2 years 前

已回答
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...

2 years 前 | 0

已回答
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...

2 years 前 | 0

| 已接受

已解决


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

2 years 前

已解决


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

2 years 前

已解决


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.

2 years 前

已回答
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...

2 years 前 | 0

已解决


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

2 years 前

加载更多