Solved

Determine if input is odd

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

casi 5 años ago

Solved

Determine whether a vector is monotonically increasing

Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

casi 5 años 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...

casi 5 años ago

Solved

Make a checkerboard matrix

Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...

casi 5 años ago

Solved

Find all elements less than 0 or greater than 10 and replace them with NaN

Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

casi 5 años ago

Solved

Triangle Numbers

Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

casi 5 años ago

Solved

Column Removal

Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

casi 5 años 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 ...

casi 5 años 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...

casi 5 años 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:...

casi 5 años ago

Answered

delete words from list based on logical statement

I slightly modified Jan's answer: List = {'abatable';'abate';'abatement';'abater';'dog';'cat'; ... 'make';'abato...

delete words from list based on logical statement

I slightly modified Jan's answer: List = {'abatable';'abate';'abatement';'abater';'dog';'cat'; ... 'make';'abato...

casi 5 años ago | 0

| accepted

Answered

Export dataset to excel file

The error indicates that "ds" is a cell, and not a "dataset" variable. A dataset has a specific definition within MATLAB. Tak...

Export dataset to excel file

The error indicates that "ds" is a cell, and not a "dataset" variable. A dataset has a specific definition within MATLAB. Tak...

casi 5 años ago | 0

Answered

Finding inflection point on a x,y plot

Do you have an analytic (symbolic) representation of the function? Or just numerical data? If you have an analytic representa...

Finding inflection point on a x,y plot

Do you have an analytic (symbolic) representation of the function? Or just numerical data? If you have an analytic representa...

casi 5 años ago | 0

Answered

Error using the integral function - A and B must be floating-point scalars.

Your variables "y1" and "y2" are vectors. The command: Eiy1 = integral(fun1, Inf, y1) is really doing the integral of : ...

Error using the integral function - A and B must be floating-point scalars.

Your variables "y1" and "y2" are vectors. The command: Eiy1 = integral(fun1, Inf, y1) is really doing the integral of : ...

casi 5 años ago | 0

| accepted

Answered

use coder with nn tool

Check out this link: http://www.mathworks.com/help/simulink/ug/functions-supported-for-code-generation--categorical-list.html#b...

use coder with nn tool

Check out this link: http://www.mathworks.com/help/simulink/ug/functions-supported-for-code-generation--categorical-list.html#b...

casi 5 años ago | 0

Answered

how to find total derivative?

Hey Kanav, Check out "diff" in the Symbolic Math Toolbox. One thing to note is that for the form you want, you need to explic...

how to find total derivative?

Hey Kanav, Check out "diff" in the Symbolic Math Toolbox. One thing to note is that for the form you want, you need to explic...

alrededor de 5 años ago | 0

| accepted

Answered

I am working with the Case Study for the Credit Scorecard Analysis

Hey Vernon, The bottom line is the data set just does not have great predictors. I think the point of the example is just to ...

I am working with the Case Study for the Credit Scorecard Analysis

Hey Vernon, The bottom line is the data set just does not have great predictors. I think the point of the example is just to ...

alrededor de 5 años ago | 0

Answered

MATLAB installation under Linux

Hey Lucas, It looks like you are having the same issue as described in this post: <http://www.mathworks.com/matlabcentral/...

MATLAB installation under Linux

Hey Lucas, It looks like you are having the same issue as described in this post: <http://www.mathworks.com/matlabcentral/...

alrededor de 5 años ago | 0

Answered

simple method of forcing single precision floating point operations

Hey Jonah, I'm not sure if you tried this already, but you should be able to specify single precision by following the steps ...

simple method of forcing single precision floating point operations

Hey Jonah, I'm not sure if you tried this already, but you should be able to specify single precision by following the steps ...

alrededor de 5 años ago | 1

Answered

Creation timeSeries using a datetime variable

Hi Cedric, If you already have your dates in a cell array string format, you should not need to convert to datetime in order ...

Creation timeSeries using a datetime variable

Hi Cedric, If you already have your dates in a cell array string format, you should not need to convert to datetime in order ...

alrededor de 5 años ago | 0

| accepted

Answered

Changing the Dielectric Constant of a Microstrip Patch Antenna in Antenna Toolbox

Hi Abubakar, Currently it does not seem like there is a way to use a different value for the dielectric constant. I work for ...

Changing the Dielectric Constant of a Microstrip Patch Antenna in Antenna Toolbox

Hi Abubakar, Currently it does not seem like there is a way to use a different value for the dielectric constant. I work for ...

alrededor de 5 años ago | 0

Answered

Optimisation application: how do I create the fitness function?

Hey Howard, It looks like you are on the right track to defining your fitness function for "gamultiobj". I think the issues y...

Optimisation application: how do I create the fitness function?

Hey Howard, It looks like you are on the right track to defining your fitness function for "gamultiobj". I think the issues y...

alrededor de 5 años ago | 0

| accepted

Answered

How can i design a variable inductor for three phase inverter in simulink?

Hi Muhammad, As the error indicates, you likely have left the "Inject Inductor Current" block open-circuit. In the "power_Var...

How can i design a variable inductor for three phase inverter in simulink?

Hi Muhammad, As the error indicates, you likely have left the "Inject Inductor Current" block open-circuit. In the "power_Var...

alrededor de 5 años ago | 0

Answered

HDL code generation of Simple TF

Hi Safiya, You should be able to set the word length by changing the data types for the specific ports/values inside the disc...

HDL code generation of Simple TF

Hi Safiya, You should be able to set the word length by changing the data types for the specific ports/values inside the disc...

alrededor de 5 años ago | 0

| accepted

Answered

axis label messed up when exporting eps

Hi Lian, I tried the following on my Debian installation using MATLAB R2015a: plot(1:10, exp(1:10)); xlabel('x') ...

axis label messed up when exporting eps

Hi Lian, I tried the following on my Debian installation using MATLAB R2015a: plot(1:10, exp(1:10)); xlabel('x') ...

alrededor de 5 años ago | 0

Answered

Is it possible to keep the dropdown menu of my personal help content from folding in after clicking on a subsection ?

Hi Simon, I believe this is happening because the subsection that you are clicking on is actually a link to a new HTML page, ...

Is it possible to keep the dropdown menu of my personal help content from folding in after clicking on a subsection ?

Hi Simon, I believe this is happening because the subsection that you are clicking on is actually a link to a new HTML page, ...

alrededor de 5 años ago | 0

Answered

Parameter Estimation for second order battery: I am trying to fill lookup tables for R1, C1, R2, and C2. Lookup tables depends on SoC and Temperature value. For now, I am only sending temperature as 20 celcius and generating SoC from input current.

Hi Gökay, If you want to fill in the lookup tables, using "Parameter Estimation" is probably not the best approach. A lookup ...

Parameter Estimation for second order battery: I am trying to fill lookup tables for R1, C1, R2, and C2. Lookup tables depends on SoC and Temperature value. For now, I am only sending temperature as 20 celcius and generating SoC from input current.

Hi Gökay, If you want to fill in the lookup tables, using "Parameter Estimation" is probably not the best approach. A lookup ...

alrededor de 5 años ago | 0

Answered

Output of Sine and chirp block seems wrong

Hey Max, This is due to the step sizes of the solver that Simulink is choosing. By default Simulink sets the step size to: h_...

Output of Sine and chirp block seems wrong

Hey Max, This is due to the step sizes of the solver that Simulink is choosing. By default Simulink sets the step size to: h_...

alrededor de 5 años ago | 0