Answered

SIMULINK char to num

receivedData = [49 50 51 46 52 53 54 55 32 32 32 32 32 32 55 54 53 46 52 51 50 49 32 32 32 32 32 32 32 32 32 32 32 32 32 49 32 3...

SIMULINK char to num

receivedData = [49 50 51 46 52 53 54 55 32 32 32 32 32 32 55 54 53 46 52 51 50 49 32 32 32 32 32 32 32 32 32 32 32 32 32 49 32 3...

5 months ago | 1

| accepted

Answered

Hi Any one knows how to interface delta VFD MS300 with matlab to control motor speed and direction.

I was not able to find an example where VFD MS300 was interfaced but there are several examples of controlling Motors using MATL...

Hi Any one knows how to interface delta VFD MS300 with matlab to control motor speed and direction.

I was not able to find an example where VFD MS300 was interfaced but there are several examples of controlling Motors using MATL...

5 months ago | 0

Answered

I am a 3rd year ECE UG student i know the basics of this matlab language but want to from the community about how to get advanced.....

<https://in.mathworks.com/help/overview/wireless-communications.html#:~:text=Wireless%20engineering%20teams%20use%20MATLAB,over%...

I am a 3rd year ECE UG student i know the basics of this matlab language but want to from the community about how to get advanced.....

<https://in.mathworks.com/help/overview/wireless-communications.html#:~:text=Wireless%20engineering%20teams%20use%20MATLAB,over%...

5 months ago | 1

Answered

How to find the gradient of plotted values?

Derivative at the local maximum is zero. You could find the gradient of a variable using doc gradient

How to find the gradient of plotted values?

Derivative at the local maximum is zero. You could find the gradient of a variable using doc gradient

5 months ago | 0

Answered

Modeling Wind Turbine help

Use <https://in.mathworks.com/help/stateflow/gs/temporal-logic.html#:~:text=To%20define%20the%20behavior%20of,a%20Boolean%20cond...

Modeling Wind Turbine help

Use <https://in.mathworks.com/help/stateflow/gs/temporal-logic.html#:~:text=To%20define%20the%20behavior%20of,a%20Boolean%20cond...

5 months ago | 0

| accepted

Answered

I want to export the values displayed in the model explorer. Is there a way to do that?

Investigate the names abs values using <https://in.mathworks.com/help/simulink/slref/get_param.html?searchHighlight=Get&s_tid=sr...

I want to export the values displayed in the model explorer. Is there a way to do that?

Investigate the names abs values using <https://in.mathworks.com/help/simulink/slref/get_param.html?searchHighlight=Get&s_tid=sr...

5 months ago | 0

Answered

How to call a file.m

Let’s say your file name is *Load_Variables.m*. And it has a code: Vax = 10; Click the run button in MATLAB , now th...

How to call a file.m

Let’s say your file name is *Load_Variables.m*. And it has a code: Vax = 10; Click the run button in MATLAB , now th...

5 months ago | 0

Answered

Define the matrix with the command sym

As it suggests 'Character vectors and strings in the first argument can only specify a variable or number.' It can be a varia...

Define the matrix with the command sym

As it suggests 'Character vectors and strings in the first argument can only specify a variable or number.' It can be a varia...

5 months ago | 0

Answered

Matlab online load forever

Try doing the mentioned method at the end of the page ( <https://in.mathworks.com/help/matlab/matlab_prog/clone-from-git-reposit...

Matlab online load forever

Try doing the mentioned method at the end of the page ( <https://in.mathworks.com/help/matlab/matlab_prog/clone-from-git-reposit...

5 months ago | 0

Answered

state machine programming - helper tools

*Stateflow* is the tool what you are looking for. As per how fast and how many transitions (limit) I am not sure. You could see ...

state machine programming - helper tools

*Stateflow* is the tool what you are looking for. As per how fast and how many transitions (limit) I am not sure. You could see ...

5 months ago | 0

| accepted

Answered

Generate sine wave using input signal as amplitude source

Why not use <https://in.mathworks.com/help/simulink/slref/sinewave.html *Sine Wave*> and multiply it with the Amplitude using <h...

Generate sine wave using input signal as amplitude source

Why not use <https://in.mathworks.com/help/simulink/slref/sinewave.html *Sine Wave*> and multiply it with the Amplitude using <h...

5 months ago | 0

| accepted

Answered

2D Lookup Table Block in Simulink Resulting in Error: Invalid setting for parameter 'BreakpointsForDimension1'

table_data = yourdata; % should be an array not a table breakpoints1 = (1 : 5).'; % should be an array not a table breakpoints...

2D Lookup Table Block in Simulink Resulting in Error: Invalid setting for parameter 'BreakpointsForDimension1'

table_data = yourdata; % should be an array not a table breakpoints1 = (1 : 5).'; % should be an array not a table breakpoints...

5 months ago | 1

| accepted

Answered

It is a stateflow simulink model. I am getting the following error :- Too many input arguments. ) simout = sim('HR_Stateflow_Control_V2.slx');

It is possible that you have your own function named *sim*. Type which sim -all in your command window

It is a stateflow simulink model. I am getting the following error :- Too many input arguments. ) simout = sim('HR_Stateflow_Control_V2.slx');

It is possible that you have your own function named *sim*. Type which sim -all in your command window

5 months ago | 0

Answered

Why can't I connect Current Sensor to Kalman Filter - Simulink

Use <https://in.mathworks.com/help/simscape/ref/pssimulinkconverter.html *PS-Simulink Converter*> to connect current sensor to K...

Why can't I connect Current Sensor to Kalman Filter - Simulink

Use <https://in.mathworks.com/help/simscape/ref/pssimulinkconverter.html *PS-Simulink Converter*> to connect current sensor to K...

5 months ago | 0

Answered

Element-wise product in Simulink

Desired can be achieved using For Each or For Iterator subsystem

Element-wise product in Simulink

Desired can be achieved using For Each or For Iterator subsystem

5 months ago | 0

Answered

In Simulink, is it possible to calculate back one step depending on the conditions?

if you want to compare the previous timestep value you could use Unit Delay block

In Simulink, is it possible to calculate back one step depending on the conditions?

if you want to compare the previous timestep value you could use Unit Delay block

5 months ago | 0

Answered

How to achieve this presentation of stateflow

set(gcb,'ContentPreviewEnabled','On') gcb click Stateflow chart and run this command in command window

How to achieve this presentation of stateflow

set(gcb,'ContentPreviewEnabled','On') gcb click Stateflow chart and run this command in command window

5 months ago | 1

| accepted

Answered

How can I reduce the run time a code?

Directly use logical indexing , i.e: remove find(…) command and replace your if condition with if any(index) Try using is...

How can I reduce the run time a code?

Directly use logical indexing , i.e: remove find(…) command and replace your if condition with if any(index) Try using is...

5 months ago | 1

Answered

How to generate bool type identifier 'true' and 'false' C code

<</matlabcentral/answers/uploaded_files/1574467/D925714B-969A-4CF0-A11B-29B68AF7CA4B.jpeg>>

How to generate bool type identifier 'true' and 'false' C code

<</matlabcentral/answers/uploaded_files/1574467/D925714B-969A-4CF0-A11B-29B68AF7CA4B.jpeg>>

5 months ago | 0

Answered

MATLAB Answers Wish-list #6 (and bug reports)

An inbuilt translate feature within MATLAB Answers could be nice. <https://in.mathworks.com/matlabcentral/answers/2062922-mat...

MATLAB Answers Wish-list #6 (and bug reports)

An inbuilt translate feature within MATLAB Answers could be nice. <https://in.mathworks.com/matlabcentral/answers/2062922-mat...

5 months ago | 0

Question

MATLAB Answers translation feature

It is common to use google translate when using chrome for example to translate questions or answers in web pages. Could it be p...

5 months ago | 0 answers | 3

Answered

How to Simulink profiler in Matlab 2021b ?

<https://in.mathworks.com/help/simulink/slref/simulink.profiler.data.html#mw_13249108-86eb-4bb6-9789-a31f58049598>

How to Simulink profiler in Matlab 2021b ?

<https://in.mathworks.com/help/simulink/slref/simulink.profiler.data.html#mw_13249108-86eb-4bb6-9789-a31f58049598>

5 months ago | 0

| accepted

Answered

How to use this code in simulink without using For loop?

Make use of *Unit Delay* block to use the value from previous timestep.

How to use this code in simulink without using For loop?

Make use of *Unit Delay* block to use the value from previous timestep.

5 months ago | 0

Answered

by using stateflow how to set the timer??

See <https://in.mathworks.com/help/stateflow/ug/using-temporal-logic-in-state-actions-and-transitions.html> for temporal logic

by using stateflow how to set the timer??

See <https://in.mathworks.com/help/stateflow/ug/using-temporal-logic-in-state-actions-and-transitions.html> for temporal logic

5 months ago | 0

Answered

Unreadable operations when using symbolic functions

vpa(Gysmbolic, 4)

Unreadable operations when using symbolic functions

vpa(Gysmbolic, 4)

5 months ago | 0

| accepted

Answered

Import vector from workspace to simulink

<https://in.mathworks.com/help/simulink/slref/foreachsubsystem.html *For Each Subsystem*> is to be used for this purpose.

Import vector from workspace to simulink

<https://in.mathworks.com/help/simulink/slref/foreachsubsystem.html *For Each Subsystem*> is to be used for this purpose.

5 months ago | 0

Answered

How can i add FTP 75 drive cycle mat file in signal editor block of simulink for battery pack modelling?

<https://in.mathworks.com/help/autoblks/ref/drivecyclesource.html *Drive Cycle Source Block*> requires *Powertrain Blockset*.

How can i add FTP 75 drive cycle mat file in signal editor block of simulink for battery pack modelling?

<https://in.mathworks.com/help/autoblks/ref/drivecyclesource.html *Drive Cycle Source Block*> requires *Powertrain Blockset*.

5 months ago | 0

Answered

Why do I get the error «unrecognized function or variable»

Usually you need to use dot indexing to get the variable data. plot(out.phi(:, 1), out.phi(:, 2)) Use *To Workspace* bloc...

Why do I get the error «unrecognized function or variable»

Usually you need to use dot indexing to get the variable data. plot(out.phi(:, 1), out.phi(:, 2)) Use *To Workspace* bloc...

5 months ago | 0

Answered

How do I break an array into individual element without using loops

y = reshape(x, 1, 1, []) y(:, :, 1) This makes it a 3 D array If you want it as a cell array then y = num2cell(x)...

How do I break an array into individual element without using loops

y = reshape(x, 1, 1, []) y(:, :, 1) This makes it a 3 D array If you want it as a cell array then y = num2cell(x)...

5 months ago | 0

Answered

Find Geiger counter CPM

Let A be your Interval test signal in timeseries format. Then Pulses_1_3secs = nnz(out.A.Data((out.A.Time >= 1) & (out.A.Tim...

Find Geiger counter CPM

Let A be your Interval test signal in timeseries format. Then Pulses_1_3secs = nnz(out.A.Data((out.A.Time >= 1) & (out.A.Tim...

5 months ago | 0