Answered

Euler's Method

Hi, Simple code error. Check this line y(i+1) = y(i) + h *((sin(x(i)) * ( 1 - y(i)))) ; %Euler's Method

Euler's Method

Hi, Simple code error. Check this line y(i+1) = y(i) + h *((sin(x(i)) * ( 1 - y(i)))) ; %Euler's Method

6 Monate ago | 0

Answered

HELP! I need to plot my values from if statement, and cant figure out how

Hi, Just a small correction in the code if H < 1.5 %Pressure drop is less than 1.5 psi D = (Qc.^0.381)/(19.17*(H...

HELP! I need to plot my values from if statement, and cant figure out how

Hi, Just a small correction in the code if H < 1.5 %Pressure drop is less than 1.5 psi D = (Qc.^0.381)/(19.17*(H...

6 Monate ago | 0

Answered

calculating minimum distance in a circular manner

Hi, Here is a solution X = [1 2 3]; Y = [2 3 4]; dist = zeros(length(Y),1); for a = 1: length(Y) %eucliedian distance ...

calculating minimum distance in a circular manner

Hi, Here is a solution X = [1 2 3]; Y = [2 3 4]; dist = zeros(length(Y),1); for a = 1: length(Y) %eucliedian distance ...

6 Monate ago | 0

Answered

matlab function simulink parameters

Hi, You can name the same name in the constant block with the same name as that of workspace. For example: If you have a cons...

matlab function simulink parameters

Hi, You can name the same name in the constant block with the same name as that of workspace. For example: If you have a cons...

6 Monate ago | 0

Answered

Find 3 values equal and consecutive in the row of a matrix.

Hi Pedro, Try to this lib by Jos https://in.mathworks.com/matlabcentral/fileexchange/56131-runindex You can use this to solve...

Find 3 values equal and consecutive in the row of a matrix.

Hi Pedro, Try to this lib by Jos https://in.mathworks.com/matlabcentral/fileexchange/56131-runindex You can use this to solve...

6 Monate ago | 0

Answered

Building the Matrix from the two matrices

Hi, Please check the answer LA = [ 0 77 0 0; 77 0 15 0; 0 15 ...

Building the Matrix from the two matrices

Hi, Please check the answer LA = [ 0 77 0 0; 77 0 15 0; 0 15 ...

6 Monate ago | 0

| accepted

Answered

Plotting continuous wavelet in 3D

Hi, I dont know about cwt command. My idea would be to store the values obtained from cwt command in to 2 variables and then us...

Plotting continuous wavelet in 3D

Hi, I dont know about cwt command. My idea would be to store the values obtained from cwt command in to 2 variables and then us...

6 Monate ago | 0

Answered

I need to remove artifacts (dust or other debris) from other images taken by the same microscope.

Hi, This is an interesting question. Can you try using edge detection filters and then send it through CNN?.

I need to remove artifacts (dust or other debris) from other images taken by the same microscope.

Hi, This is an interesting question. Can you try using edge detection filters and then send it through CNN?.

6 Monate ago | 0

Answered

Data Type Propagation block doesn't work with Boolean data type

Hi, The error says "The 3rd input for Data Type Propogation block has to be uint8 but you are feeding it Boolean" Please post t...

Data Type Propagation block doesn't work with Boolean data type

Hi, The error says "The 3rd input for Data Type Propogation block has to be uint8 but you are feeding it Boolean" Please post t...

6 Monate ago | 0

Answered

Mask for S-function

Hi, The easier thing would be to have if else statement in the C-code and whose condtions are dependent on a input

Mask for S-function

Hi, The easier thing would be to have if else statement in the C-code and whose condtions are dependent on a input

6 Monate ago | 0

Answered

How to adjust the value of something using if-else logic in Simulink

Hi, Try using switch block from simulink library

How to adjust the value of something using if-else logic in Simulink

Hi, Try using switch block from simulink library

6 Monate ago | 0

Answered

How can i make the simulink block to show a float window, which contains the parameter configuaration of the block, when i put my mouse on the block?

Hi, I guess you can just simulink to show output signal variable type.

How can i make the simulink block to show a float window, which contains the parameter configuaration of the block, when i put my mouse on the block?

Hi, I guess you can just simulink to show output signal variable type.

6 Monate ago | 0

Question

how to implement structfun using 2 variables

Hi all, Is it possible to have a code which is similar to S.value1.x = 1; S.value2.x = 10; S.value3.x = 17; S1.value1.x = 1...

6 Monate ago | 2 answers | 0

Answered

Acces data in nested structure

Hi, You can treat the variable name as string. First you should store all the various_subStructures in an array(or cell) in f...

Acces data in nested structure

Hi, You can treat the variable name as string. First you should store all the various_subStructures in an array(or cell) in f...

6 Monate ago | 0

Answered

How to create a mathematical expression which contains delays using Symbolic Math Toolbox?

Hi, There is mistake in the coe :) And the term I1*I3-4 is not the same you explained. Here it follows BODMAS rule. I1*I3-4 ...

How to create a mathematical expression which contains delays using Symbolic Math Toolbox?

Hi, There is mistake in the coe :) And the term I1*I3-4 is not the same you explained. Here it follows BODMAS rule. I1*I3-4 ...

6 Monate ago | 0

Answered

Please help me... please(by 6/6/2019)

Hi, I will not give the solutiopn for your homework. If you wanna try the solution, study the topic "Entropy in Information the...

Please help me... please(by 6/6/2019)

Hi, I will not give the solutiopn for your homework. If you wanna try the solution, study the topic "Entropy in Information the...

6 Monate ago | 1

Answered

Running C code from Matlab

Hi Sandeep, For sure there is no one line solution for this. I learnt it using these video series by Matlab. please follow it, ...

Running C code from Matlab

Hi Sandeep, For sure there is no one line solution for this. I learnt it using these video series by Matlab. please follow it, ...

6 Monate ago | 0

| accepted

Answered

sorting and summing through data

Hi, I managed to solve the question. Please review and update % positive is of class 1 and negetive is class 0 (just for ease ...

sorting and summing through data

Hi, I managed to solve the question. Please review and update % positive is of class 1 and negetive is class 0 (just for ease ...

6 Monate ago | 0

Answered

How to create a 3D matrix out of 2D matrices?

Hi, The t0 you get from : t0=(sqrt(y0.^2+x0.^2) ./ c); t0 here is a matrix. So when you tell you want to increase t0 by 0.0...

How to create a 3D matrix out of 2D matrices?

Hi, The t0 you get from : t0=(sqrt(y0.^2+x0.^2) ./ c); t0 here is a matrix. So when you tell you want to increase t0 by 0.0...

7 Monate ago | 0

Answered

Plotting a cellArray Issue

Hi m j, Can you try something like this? celldata(j) = str2num(x) By doing this you are just storing them as numbers but not ...

Plotting a cellArray Issue

Hi m j, Can you try something like this? celldata(j) = str2num(x) By doing this you are just storing them as numbers but not ...

7 Monate ago | 0

| accepted

Answered

Calculation between 2 vectors where one is 4d and other is 1d

Hi, small explanation of How I approached the answer. I changed domenstion on B so that it would that of A and the subtracted t...

Calculation between 2 vectors where one is 4d and other is 1d

Hi, small explanation of How I approached the answer. I changed domenstion on B so that it would that of A and the subtracted t...

7 Monate ago | 0

Answered

I need MATLAB to read my data from the bottom up.

Hi, I can help you with first part of the question. To read it inverse [NUM,TXT,RAW]=xlsread('Bonds.xlsx') %get the length [...

I need MATLAB to read my data from the bottom up.

Hi, I can help you with first part of the question. To read it inverse [NUM,TXT,RAW]=xlsread('Bonds.xlsx') %get the length [...

7 Monate ago | 0

Answered

a) Consider an input of a system given as 𝑥[𝑛] = {1, 2,3} and the impulse response of a system given ↑ as ℎ[𝑛] = {4,5,6} for 0 ≤ 𝑛 ≤ 3. Use MATLAB to find and sketch the output 𝑦[𝑛].

Check this out: https://in.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-an...

a) Consider an input of a system given as 𝑥[𝑛] = {1, 2,3} and the impulse response of a system given ↑ as ℎ[𝑛] = {4,5,6} for 0 ≤ 𝑛 ≤ 3. Use MATLAB to find and sketch the output 𝑦[𝑛].

Check this out: https://in.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-an...

7 Monate ago | 0

Answered

How to extract info from string using regexp?

Hi, Since all the lines are of same format. I would reccomend you to do something like this str = ['[DEBUG][HoraCorrelationMat...

How to extract info from string using regexp?

Hi, Since all the lines are of same format. I would reccomend you to do something like this str = ['[DEBUG][HoraCorrelationMat...

7 Monate ago | 0

Answered

to write to a excel file

There cannot be two users editing a file together. In this case you are one user if the excel is open and Matlab is the other us...

to write to a excel file

There cannot be two users editing a file together. In this case you are one user if the excel is open and Matlab is the other us...

9 Monate ago | 0

Answered

Index exceeds the number of array elements in while loop

Hi, I just shuffled the code a bit. Check this: clc clear x = input('Please enter the first number in the series:'); y = i...

Index exceeds the number of array elements in while loop

Hi, I just shuffled the code a bit. Check this: clc clear x = input('Please enter the first number in the series:'); y = i...

9 Monate ago | 0

| accepted

Answered

While loop to break out of for loop

I would say yopu have to break using if condition. While command is used when you want a loop pos={}; limit = 2; for a= 1:siz...

While loop to break out of for loop

I would say yopu have to break using if condition. While command is used when you want a loop pos={}; limit = 2; for a= 1:siz...

9 Monate ago | 0

Answered

i want a c code for my matlab program

There is a toolbox called Embedded coder in matlab which converts the Model to required code.you can start with this video

i want a c code for my matlab program

There is a toolbox called Embedded coder in matlab which converts the Model to required code.you can start with this video

9 Monate ago | 0

Question

What is the type of function Handle and How is it stored in memory?

I have been using function handle from a long time. Can someone explain how it is stored in memory. For example take the followi...

9 Monate ago | 2 answers | 0