Answered

How can I compute this type of optimization using fmincon?

In order to work with nonlinear equations using fmincon you can have a look at the following documentation which explains how to...

How can I compute this type of optimization using fmincon?

In order to work with nonlinear equations using fmincon you can have a look at the following documentation which explains how to...

3 Monate ago | 0

Answered

How to design Swap logic with Simulink blocks to get the same code with Embedded coder?

You can always use MATLAB function block to design the swap logic.You only need to write the swap logic in the function block. F...

How to design Swap logic with Simulink blocks to get the same code with Embedded coder?

You can always use MATLAB function block to design the swap logic.You only need to write the swap logic in the function block. F...

3 Monate ago | 0

| accepted

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

5 Monate ago

Answered

change a vector into two different value by compare element in it with a threshold

We can achieve it by writing the vector in the following format. p(p>threshold) = m; %m and n being any number which we want t...

change a vector into two different value by compare element in it with a threshold

We can achieve it by writing the vector in the following format. p(p>threshold) = m; %m and n being any number which we want t...

5 Monate ago | 0

Answered

how to convert the edge list (with node,node,weight) into weighted matrix

To convert an adjacency list into an adjacency matrix in MATLAB we can use the “adjacency” function available in the library. A...

how to convert the edge list (with node,node,weight) into weighted matrix

To convert an adjacency list into an adjacency matrix in MATLAB we can use the “adjacency” function available in the library. A...

5 Monate ago | 0

Answered

How can i get the frequency response from this code:

Frequency response uses an FFT-based algorithm to calculate the Z-transform frequency response of a digital filter. The function...

How can i get the frequency response from this code:

Frequency response uses an FFT-based algorithm to calculate the Z-transform frequency response of a digital filter. The function...

5 Monate ago | 0

| accepted

Answered

(Image processing) new image with the specified color

To separate out the red lines you may convert the RGB image to HSV (Hue-Saturation-Value) image. HSV separates the image intensi...

(Image processing) new image with the specified color

To separate out the red lines you may convert the RGB image to HSV (Hue-Saturation-Value) image. HSV separates the image intensi...

5 Monate ago | 0

Answered

Modify the code from the previous example

The code below takes a magic square of size 6 and replaces the even elements with 2 and replaces the odd elements with 1. N=6; ...

Modify the code from the previous example

The code below takes a magic square of size 6 and replaces the even elements with 2 and replaces the odd elements with 1. N=6; ...

6 Monate ago | 0

Answered

Which of the two methods is faster

There is no evidence that vectorized code is faster in general. If a build-in function can be applied to a complete array, a ve...

Which of the two methods is faster

There is no evidence that vectorized code is faster in general. If a build-in function can be applied to a complete array, a ve...

6 Monate ago | 0

Answered

How do you load xyz files with a similar name but only differ by a number in its name into one manipulatble array?

We can read the list of files using the “dir” command to read the files in the given directory[should be present in the path ] a...

How do you load xyz files with a similar name but only differ by a number in its name into one manipulatble array?

We can read the list of files using the “dir” command to read the files in the given directory[should be present in the path ] a...

6 Monate ago | 0

Answered

How to link to a web address or a local PDF file from App designer?

In order to assign a hyperlink to a component so that the assigned web address is opened in browser, we can add callback functio...

How to link to a web address or a local PDF file from App designer?

In order to assign a hyperlink to a component so that the assigned web address is opened in browser, we can add callback functio...

6 Monate ago | 0

| accepted

Answered

simulink toolbox matlap online

Simulink is not supported for MATLAB Online.

simulink toolbox matlap online

Simulink is not supported for MATLAB Online.

6 Monate ago | 0

| accepted

Answered

half bridge LLC resonant converter transfer function

In order to calculate the transfer of the open loop converter we can use the function getLoopTransfer(T,Locations) which returns...

half bridge LLC resonant converter transfer function

In order to calculate the transfer of the open loop converter we can use the function getLoopTransfer(T,Locations) which returns...

6 Monate ago | 0

| accepted

Answered

Choice made in menu prints a blank box

In order to get the values of the options instead of the index we can pass the values in a cell array to the menu function. The ...

Choice made in menu prints a blank box

In order to get the values of the options instead of the index we can pass the values in a cell array to the menu function. The ...

6 Monate ago | 0

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

7 Monate ago

Solved

Select every other element of a vector

Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

7 Monate ago

Solved

Determine if input is odd

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

7 Monate 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 Monate 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 Monate ago