Answered

how to obtain the parameter estimates using maximum likelihood estimation?

Generalized linear models use maximum likelihood estimation. If you have the statistics toolbox, look at https://www.mathworks....

how to obtain the parameter estimates using maximum likelihood estimation?

Generalized linear models use maximum likelihood estimation. If you have the statistics toolbox, look at https://www.mathworks....

3 years ago | 0

| accepted

Question

Is there a way in MATLAB coder to get a user to identify an Excel file, then read the contents of that Excel file?

I am trying to use MATLAB Coder to package a program that reads inputs from an excel file, does a calculation, plots results, an...

3 years ago | 1 answer | 0

Question

How do I print a 1-inch by 1-inch square on a piece of paper?

I have been searching the help files and MATLAB Answers but my pictures are still coming out distorted.

4 years ago | 1 answer | 0

Question

How do I plot a contour map on the surface of a 3-d surface?

The idea is similar to using "surf(X,Y,Z,C)" but I want contour lines in addition to the coloring provided by C. The contour lin...

4 years ago | 1 answer | 0

Solved

Is this triangle right-angled?

Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...

4 years ago

Answered

Help with a design project, dont know where else to go.

Start at your initial time with an initial position and velocity: Calculate air density, balloon volume, drag force, etc. Basic...

Help with a design project, dont know where else to go.

Start at your initial time with an initial position and velocity: Calculate air density, balloon volume, drag force, etc. Basic...

5 years ago | 0

Question

Parameter search limits for fitnlm

Is there a way to constrain the search for parameter values on fitnlm? I keep running into issues when trying to solve for 3 to...

5 years ago | 1 answer | 1

Question

Why does matrix power give wrong answer?

I am trying to do a MCMC simulation and need to calculate a small frequency event over a long time. To do this I need to raise ...

6 years ago | 1 answer | 0

Question

Documentation text is on top of index text

Whenever I open up the help file, the text describing the function is always on top of the index making it impossible to read. ...

6 years ago | 1 answer | 0

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

6 years ago

Answered

error Function definitions are not permitted in this context

- According to the documentation "expfit" does a maximum likelihood fit assuming the error follows an exponential distribution. ...

error Function definitions are not permitted in this context

- According to the documentation "expfit" does a maximum likelihood fit assuming the error follows an exponential distribution. ...

6 years ago | 0

Answered

mex -setup disabled Matlab

I found the problem, Kapersky Anti-Virus 6.0 quarantined Matlab.exe after running the mex -setup command. After restoring the qu...

mex -setup disabled Matlab

I found the problem, Kapersky Anti-Virus 6.0 quarantined Matlab.exe after running the mex -setup command. After restoring the qu...

7 years ago | 0

| accepted

Question

mex -setup disabled Matlab

I was trying to run the National Instruments example code to read a tdms file and I got an error saying something about an unrec...

7 years ago | 2 answers | 0

Solved

Return the 3n+1 sequence for n

A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

7 years ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

7 years ago

Solved

Swap the first and last columns

Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

7 years ago

Solved

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

7 years ago

Solved

Determine if input is odd

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

7 years ago

Solved

Find the sum of all the numbers of the input vector

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

7 years ago

Solved

Check if number exists in vector

Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

7 years ago