I work at Mathworks.

Solved

Check that number is whole number

Check that number is whole number Say x=15, then answer is 1. x=15.2 , then answer is 0. <http://en.wikipedia.org/wiki/Whole...

4 mesi ago

Answered

Can not connect the output of PWM to a Gate Driver

The input to ' _Gate Driver_' block can be both a Physical signal input, Electrical input ports. Current the ' _Gate Driver_'...

Can not connect the output of PWM to a Gate Driver

The input to ' _Gate Driver_' block can be both a Physical signal input, Electrical input ports. Current the ' _Gate Driver_'...

oltre un anno ago | 0

Answered

Difference 'function A=function_filename(c,d) and 'A=function_filename(c,d)'

*function A=function_filename(c,d)* declares a function named function_filename that accepts inputs c,d and returns outputs A. ...

Difference 'function A=function_filename(c,d) and 'A=function_filename(c,d)'

*function A=function_filename(c,d)* declares a function named function_filename that accepts inputs c,d and returns outputs A. ...

oltre un anno ago | 0

| accepted

Answered

Why does my array do this?

Instruction 'B = 1:m' will create a vector consisting of [1,2,3,...,k] where k is [m]. I think you want to append m at the en...

Why does my array do this?

Instruction 'B = 1:m' will create a vector consisting of [1,2,3,...,k] where k is [m]. I think you want to append m at the en...

oltre un anno ago | 0

Answered

Sum specific intervals of rows for a matrix

Hi, I believe you want to sum the 12 consecutive columns of a Matrix and convert it to one column. Doing this Matrix *a* of s...

Sum specific intervals of rows for a matrix

Hi, I believe you want to sum the 12 consecutive columns of a Matrix and convert it to one column. Doing this Matrix *a* of s...

oltre un anno ago | 0

| accepted

Answered

How to feed parameters in DC machine model for any given name plate details?

Hi, You can use the Preset model in the Configuration tab. The Preset model provides a set of predetermined electrical and me...

How to feed parameters in DC machine model for any given name plate details?

Hi, You can use the Preset model in the Configuration tab. The Preset model provides a set of predetermined electrical and me...

oltre un anno ago | 0

Answered

Lsim with two input signal

Hi, The input matrix *B* defined is a 3x2 Matrix, by doing this we have defined a two-input system. For *lsim* to function as...

Lsim with two input signal

Hi, The input matrix *B* defined is a 3x2 Matrix, by doing this we have defined a two-input system. For *lsim* to function as...

oltre un anno ago | 0

Answered

Evaluate zeros of a symbolic trigonometric function

Hi, You can use ' *solve*' command to solve the equation.For more information on ' *solve*', please have a look at the follow...

Evaluate zeros of a symbolic trigonometric function

Hi, You can use ' *solve*' command to solve the equation.For more information on ' *solve*', please have a look at the follow...

oltre un anno ago | 0

Answered

I have a graph each time when I run according to the random number it will generate a new graph(TIME&VELOCITY) .Now I want to save each graphs time and velocity in order to upload and use it to other program .How should I do it?

Hi, You can use 'gca' command to get the axis properties of a figure and access its children (line) properties like XData and...

I have a graph each time when I run according to the random number it will generate a new graph(TIME&VELOCITY) .Now I want to save each graphs time and velocity in order to upload and use it to other program .How should I do it?

Hi, You can use 'gca' command to get the axis properties of a figure and access its children (line) properties like XData and...

oltre un anno ago | 0

Answered

Writing a Gaussion Elimination function with 4 inputs

Hi, I assume that you are receiving the following error: Assignment has more non-singleton rhs dimensions than non-singl...

Writing a Gaussion Elimination function with 4 inputs

Hi, I assume that you are receiving the following error: Assignment has more non-singleton rhs dimensions than non-singl...

oltre un anno ago | 0

Answered

Modelling A Matlab Project

Hi, Stateflow is an environment for modeling and simulating combinatorial and sequential decision logic based on state machin...

Modelling A Matlab Project

Hi, Stateflow is an environment for modeling and simulating combinatorial and sequential decision logic based on state machin...

oltre un anno ago | 0

Answered

how to rounding in simulink

Hi, You can apply a rounding function to the signal. For more information, please have look at the link below: <https:/...

how to rounding in simulink

Hi, You can apply a rounding function to the signal. For more information, please have look at the link below: <https:/...

oltre un anno ago | 0

Answered

License Manager error -9

Hi, The two most common causes of License Manager Error -9 are: * The MATLAB license file was activated for a different co...

License Manager error -9

Hi, The two most common causes of License Manager Error -9 are: * The MATLAB license file was activated for a different co...

oltre un anno ago | 0

Answered

I have a matrix of coordinates (20 by 3) and the norm of some of the consecutive coordinates is less than a threshold. How can I delete those data?

Hi, You can assign rows of a Matrix to an empty vector. To use the following command: matrix([row_indices],:) = []; F...

I have a matrix of coordinates (20 by 3) and the norm of some of the consecutive coordinates is less than a threshold. How can I delete those data?

Hi, You can assign rows of a Matrix to an empty vector. To use the following command: matrix([row_indices],:) = []; F...

oltre un anno ago | 0

Answered

piecewise function plot issue,

By default, fplot has a xinterval of [-5,5]. Passing the desired xinterval as an argument should solve the issue. fplot(p2,...

piecewise function plot issue,

By default, fplot has a xinterval of [-5,5]. Passing the desired xinterval as an argument should solve the issue. fplot(p2,...

oltre un anno ago | 0

Answered

Subtract two vectors while shifting them along

Hi, You can use length command of Matlab to get the size of the array and write a for loop and proper indexing of the array t...

Subtract two vectors while shifting them along

Hi, You can use length command of Matlab to get the size of the array and write a for loop and proper indexing of the array t...

oltre un anno ago | 0

| accepted

Answered

Bode plot for nonlinear equation

Hi, You can use the 'fft' command of MATLAB to find the frequency analysis of the impulse response for the function and plot ...

Bode plot for nonlinear equation

Hi, You can use the 'fft' command of MATLAB to find the frequency analysis of the impulse response for the function and plot ...

oltre un anno ago | 0

Answered

how to model a wye-delta-delta transformer?

Hi, One way of Modeling the transformer could be by referring the entire 3 Phase three winding transformer to the primary sid...

how to model a wye-delta-delta transformer?

Hi, One way of Modeling the transformer could be by referring the entire 3 Phase three winding transformer to the primary sid...

oltre un anno ago | 0

Answered

Hello I have this code for Game of life now I am getting an error in calculating the num_neighbors. Please help me fix it. Thank you

Hi, I think you are receiving an "Index exceeds matrix dimensions" error, that is due to the fact that the elements in vector...

Hello I have this code for Game of life now I am getting an error in calculating the num_neighbors. Please help me fix it. Thank you

Hi, I think you are receiving an "Index exceeds matrix dimensions" error, that is due to the fact that the elements in vector...

circa 2 anni ago | 0

Answered

Row Echeleon Form/Forward elimination only

Hi, You are accessing the element of array3 by using linear indexing and you trying to fill it with a row vector. So you are ...

Row Echeleon Form/Forward elimination only

Hi, You are accessing the element of array3 by using linear indexing and you trying to fill it with a row vector. So you are ...

circa 2 anni ago | 0

| accepted

Answered

Help with Inverse Laplace Transform Function

Hi, The ilaplace function computes the analytic closed inverse Laplace form of a transfer function. It seems that mathematica...

Help with Inverse Laplace Transform Function

Hi, The ilaplace function computes the analytic closed inverse Laplace form of a transfer function. It seems that mathematica...

circa 2 anni ago | 0

Answered

Change referenced model simulation mode programmatically

Hi, You can use 'set_param' command to change the simulation mode of the model. The following command can be used to set t...

Change referenced model simulation mode programmatically

Hi, You can use 'set_param' command to change the simulation mode of the model. The following command can be used to set t...

circa 2 anni ago | 0

Answered

DC Motor position control: Downward slope is much less than upward

Hi, It seems the model tracking the input signal properly for a low frequency sine wave input(5 Hz). I believe the control-lo...

DC Motor position control: Downward slope is much less than upward

Hi, It seems the model tracking the input signal properly for a low frequency sine wave input(5 Hz). I believe the control-lo...

circa 2 anni ago | 0

Answered

How do I find the maximum average score for this code in my loop

Hi, You can store the average values in an array and use 'max' function outside the loop to get the maximum Value and indices. ...

How do I find the maximum average score for this code in my loop

Hi, You can store the average values in an array and use 'max' function outside the loop to get the maximum Value and indices. ...

circa 2 anni ago | 0

Answered

what are the suitable membership functions and conditions to obtain the attached graph?

Hi, Once you have the data available. You can use surf and colormap methods to plot the above graph.

what are the suitable membership functions and conditions to obtain the attached graph?

Hi, Once you have the data available. You can use surf and colormap methods to plot the above graph.

circa 2 anni ago | 0

Answered

Import a .txt into a cell of a table?

Hi, You can use CellSelectionCallback and uigetfile to load data from a file.

Import a .txt into a cell of a table?

Hi, You can use CellSelectionCallback and uigetfile to load data from a file.

circa 2 anni ago | 0

Answered

Help with Newton Raphson question.

Your code for Newton-Raphson Method seems good and it should work perfectly. For Modified Newton method the value of m you sh...

Help with Newton Raphson question.

Your code for Newton-Raphson Method seems good and it should work perfectly. For Modified Newton method the value of m you sh...

circa 2 anni ago | 0

| accepted

Answered

Which type of winding is available in Permanent Magnet Synchronous Machine of simulink library

Hi, The stator windings of a Permanent Magnet Synchronous Machine is connected as star type to an internal neutral point. Ple...

Which type of winding is available in Permanent Magnet Synchronous Machine of simulink library

Hi, The stator windings of a Permanent Magnet Synchronous Machine is connected as star type to an internal neutral point. Ple...

circa 2 anni ago | 0

| accepted

Answered

Why is the recorded time of a Simulink model by the Profiler so different from that from a stopwatch?

Hi, I understand that you want to measure the real execution time of your Simulink model. Profiler is an overhead function wh...

Why is the recorded time of a Simulink model by the Profiler so different from that from a stopwatch?

Hi, I understand that you want to measure the real execution time of your Simulink model. Profiler is an overhead function wh...

circa 2 anni ago | 0

Answered

I want to upload ECG signals on Simulation, what is the better way to do it?

From <https://www.physionet.org/physiobank/database/mitdb/ physionet>, I found the sampling rate to be 360 samples per second pe...

I want to upload ECG signals on Simulation, what is the better way to do it?

From <https://www.physionet.org/physiobank/database/mitdb/ physionet>, I found the sampling rate to be 360 samples per second pe...

circa 2 anni ago | 0