Answered

How to step through While Loop in Simulink?

Breakpoints can be added to a particular signal using the Add Breakpoint option, under the Debug tab. Addittional documentat...

How to step through While Loop in Simulink?

Breakpoints can be added to a particular signal using the Add Breakpoint option, under the Debug tab. Addittional documentat...

más de 1 año ago | 0

Answered

testing hypothesis that p=alpha at 5% & 1%

To test the hypothesis at various confidence levels, Lilliefors test can be used . Example [h,p] = lillietest(x, 'Alpha', 0.0...

testing hypothesis that p=alpha at 5% & 1%

To test the hypothesis at various confidence levels, Lilliefors test can be used . Example [h,p] = lillietest(x, 'Alpha', 0.0...

más de 1 año ago | 0

Answered

How dilatate an image to get a mask

strel returns a morphological structure element, which is passed as a parameter to imdilate() . Additional information about im...

How dilatate an image to get a mask

strel returns a morphological structure element, which is passed as a parameter to imdilate() . Additional information about im...

más de 1 año ago | 0

Answered

Matlab code for black-scholes

For computing price of European Call Option using Binomial model, the appropriate technique would be to use Cox-Ross-Rubinstein...

Matlab code for black-scholes

For computing price of European Call Option using Binomial model, the appropriate technique would be to use Cox-Ross-Rubinstein...

más de 1 año ago | 0

Answered

How to extract coefficient of difference equation in Matlab?

To extract coefficient of difference equation, a possible workaround would be as follows - Convert difference equation into a f...

How to extract coefficient of difference equation in Matlab?

To extract coefficient of difference equation, a possible workaround would be as follows - Convert difference equation into a f...

más de 1 año ago | 0

| accepted

Answered

How to define transfer function as function in s

Functions like feedback() , series() etc, take in dynamic system models as input arguments. Additional information about dynamic...

How to define transfer function as function in s

Functions like feedback() , series() etc, take in dynamic system models as input arguments. Additional information about dynamic...

más de 1 año ago | 0

Answered

MATLAB code to find the maximum of a function over an interval

MATLAB doesn't have any functions which can explicit calculate the local maxima. A possible workaround would be to find the mini...

MATLAB code to find the maximum of a function over an interval

MATLAB doesn't have any functions which can explicit calculate the local maxima. A possible workaround would be to find the mini...

más de 1 año ago | 1

Answered

Vectorizing a very slow code

Documentation about Vectorization in MATLAB can be found here

Vectorizing a very slow code

Documentation about Vectorization in MATLAB can be found here

más de 1 año ago | 0

Answered

Vectors from for loop in same column

As per my understanding of the question, this is a possible solution res = S.res; trials = res(:,1); targets = res(:,7); res...

Vectors from for loop in same column

As per my understanding of the question, this is a possible solution res = S.res; trials = res(:,1); targets = res(:,7); res...

más de 1 año ago | 0

Answered

II. Plotting the Conversion

% Prompt to ask the user to enter name prompt = ' Enter name '; name = input(prompt,'s'); % Prompt to ask the user to enter...

II. Plotting the Conversion

% Prompt to ask the user to enter name prompt = ' Enter name '; name = input(prompt,'s'); % Prompt to ask the user to enter...

más de 1 año ago | 0

Answered

how row 10 is Working Specific "A(i,k+1:n) " ??

Line no. 10 states that Update the (i)th row, (k+1)th to (n)th columns of A as follows Multiply Lambda with the elements presen...

how row 10 is Working Specific "A(i,k+1:n) " ??

Line no. 10 states that Update the (i)th row, (k+1)th to (n)th columns of A as follows Multiply Lambda with the elements presen...

más de 1 año ago | 0

Answered

import data from pdb file and find bond length and bond angle using x,y,z co-ord

The data can be imported into MATLAB using pdbread(). This data is stored in pdbstruct which is a MATLAB Structure . The X,Y,Z c...

import data from pdb file and find bond length and bond angle using x,y,z co-ord

The data can be imported into MATLAB using pdbread(). This data is stored in pdbstruct which is a MATLAB Structure . The X,Y,Z c...

más de 1 año ago | 0

Answered

I want to update my 'for loop'

For loop does not support dynamic update of its conditions. A better alternative would be to use while loop instead % Initializ...

I want to update my 'for loop'

For loop does not support dynamic update of its conditions. A better alternative would be to use while loop instead % Initializ...

más de 1 año ago | 0

Answered

trimming start end end of time series data in matlab 2015

There are two possible sources of errors when the number of frames is reduced - The for loop used to calculate sumsl and sumsr ...

trimming start end end of time series data in matlab 2015

There are two possible sources of errors when the number of frames is reduced - The for loop used to calculate sumsl and sumsr ...

más de 1 año ago | 0

Answered

Simulink Dashboard Knob number of decimals

The resolution of the knob can be adjusted using a block parameter called Tick Interval . Additional documatation about it can b...

Simulink Dashboard Knob number of decimals

The resolution of the knob can be adjusted using a block parameter called Tick Interval . Additional documatation about it can b...

más de 1 año ago | 0

| accepted

Answered

Command Line support for GIT/ SVN in MATLAB project.

MATLAB does support CommandLine version of Git and SVN. Additional Resources can be found below Set Up Git Source Control Se...

Command Line support for GIT/ SVN in MATLAB project.

MATLAB does support CommandLine version of Git and SVN. Additional Resources can be found below Set Up Git Source Control Se...

más de 1 año ago | 0

Answered

Code for EV battery cooling system example?

The command sscfluids_ev_battery_cooling might not have worked because Simscape Fluids Toolbox wasn't installed. Please install ...

Code for EV battery cooling system example?

The command sscfluids_ev_battery_cooling might not have worked because Simscape Fluids Toolbox wasn't installed. Please install ...

más de 1 año ago | 0

| accepted

Answered

Please, ¿how I can obtain the model of the simscape example "ratchet_lifter.slx"?. Thanks

The above model ratchet_lifter can be accessed using the MATLAB command openExample('sm/RatchetLifterExample') Alternatively...

Please, ¿how I can obtain the model of the simscape example "ratchet_lifter.slx"?. Thanks

The above model ratchet_lifter can be accessed using the MATLAB command openExample('sm/RatchetLifterExample') Alternatively...

más de 1 año ago | 0

Answered

How to update .mat file in simulink.

To File block creates a duplicate file every time the simulation happens. A possible workaround would be to use Input and Outp...

How to update .mat file in simulink.

To File block creates a duplicate file every time the simulation happens. A possible workaround would be to use Input and Outp...

más de 1 año ago | 0

Answered

How to run two different simulink simulations at the same time?

As of now, parsim cannot run models with different names. This issue is already known and the concerned parties may be investiga...

How to run two different simulink simulations at the same time?

As of now, parsim cannot run models with different names. This issue is already known and the concerned parties may be investiga...

más de 1 año ago | 0

Answered

How to define a step function as input BC in pdepe?

There’s an error in Line 27 because, cin is of size 1x32 and MATLAB cannot vertically concatanate it with a scalar. To define...

How to define a step function as input BC in pdepe?

There’s an error in Line 27 because, cin is of size 1x32 and MATLAB cannot vertically concatanate it with a scalar. To define...

más de 1 año ago | 0

Answered

Which epoch is the training result of the train function

The train function returns the last epoch by default. This behaviour can be modified by using the ValidationPatience argument un...

Which epoch is the training result of the train function

The train function returns the last epoch by default. This behaviour can be modified by using the ValidationPatience argument un...

más de 1 año ago | 0

| accepted

Answered

How can I run a for loop through the rows of a table?

As per my understanding of the question, you would like to iterate through the rows of a table. A possible solution would be a...

How can I run a for loop through the rows of a table?

As per my understanding of the question, you would like to iterate through the rows of a table. A possible solution would be a...

más de 1 año ago | 1

Answered

Unable to perform assignment because the left and right sides have a different number of elements. Error in Hyperverlocitynew (line 36)

As per my understanding, you are unable to assign the value of the equation to vx(i). The error might have occurred because the ...

Unable to perform assignment because the left and right sides have a different number of elements. Error in Hyperverlocitynew (line 36)

As per my understanding, you are unable to assign the value of the equation to vx(i). The error might have occurred because the ...

casi 2 años ago | 0

Answered

Yahoo Finance stock historical price query

As per my understanding of the question, you are unable to fetch the stock historical price for a few companies like Netflix fro...

Yahoo Finance stock historical price query

As per my understanding of the question, you are unable to fetch the stock historical price for a few companies like Netflix fro...

casi 2 años ago | 0

Answered

Radium decomposes at a rate proportional to the amount present. If a quarter of the original amount disappears after 900 years, what is the percentage lost in 75 years?

As per my understanding of your question, you would like to solve a first order differential equation using MATLAB. This is poss...

Radium decomposes at a rate proportional to the amount present. If a quarter of the original amount disappears after 900 years, what is the percentage lost in 75 years?

As per my understanding of your question, you would like to solve a first order differential equation using MATLAB. This is poss...

casi 2 años ago | 0

Answered

Sin and delta functions in matrix

As per my understanding of your question, you would like to apply sine function on 3x3 matrix. In MATLAB, when a sine function i...

Sin and delta functions in matrix

As per my understanding of your question, you would like to apply sine function on 3x3 matrix. In MATLAB, when a sine function i...

casi 2 años ago | 0