Question

How to find One's complement of floating point variable ?

Hi, I used Simulink Bitwise Not operator to find the one's complement of uint8 type variable. Now I want to find one's compl...

3 months ago | 1 answer | 0

Question

Issues with Breaking while loop in Appdesigner.

I need to break while loop - which reads a sensor value - I want to break the while loop when pushbutton is pressed. I tried u...

7 months ago | 1 answer | 0

Question

Matlab program for dspace ControlDesk.

Through program I want to control dspace "ControlDesk" software. None of the tutorials and videos available online doesnt speak ...

1 year ago | 0 answers | 0

Question

How to Increment a constant value every time when I run the simulink ?

I want to keep a track of how many times my simulink model is run ? without using persistant variable and I also want to reset a...

2 years ago | 1 answer | 0

Question

Reading ASCII values from serial COM port

Hi all I tried reading ASCII values from barcode scanner(through serial port) into ML using the following program delete(in...

3 years ago | 0 answers | 0

Answered

How to extract number of fields and name of fields from a structure?

use length(fieldnames(structure)) to find the number of fields in a structure. In your case it is *length(fieldnames(s))*. To...

How to extract number of fields and name of fields from a structure?

use length(fieldnames(structure)) to find the number of fields in a structure. In your case it is *length(fieldnames(s))*. To...

3 years ago | 1

Question

How to implement this function using Matlab.

Hi I need to implement this function using matlab, where x and t are variables. <</matlabcentral/answers/uploaded_files/8559...

4 years ago | 1 answer | 0

Question

How to call a character saved in 'uicontrol' 'string'?

I created a *for* loop using *uicontrol* for creating *pushbuttons* as number of pushbuttons vary dynamically. here is my code:...

4 years ago | 1 answer | 0

Question

How to update comparison expression as the loop updates ?

I need to update my comparison expression , I dont know how to do it. All my comparison expressions are stored in a cells. ...

4 years ago | 1 answer | 0

Question

How to produce a pulse for 10Microseconds?

I am programming my Arduino from matlab(I installed supporting package), in order to use Ultrasonic sensor I need to produce a t...

4 years ago | 1 answer | 0

Question

How to make a program to consider, even the decimal values of the calculated data?

In the program I need to find inverse of a number, but when I find inverse it is rounding it to ZERO. I tried "double" and "form...

4 years ago | 1 answer | 0

Question

How to map the values from 0-320 to 0-29

Hi, I want to map values using matlab, but I don't know,How to do it. I want to map 0-320 to 0-29.There are many such mappings ...

4 years ago | 1 answer | 0

Question

How to read Ethernet port using Matlab?

I have to read the data provided by ScaLa(B2)-LIDAR,through a Ethernet port. In general Ibeo software is used to read the data f...

4 years ago | 3 answers | 0

Answered

How to run simulink from matlab script, pause the simulation, change constant values, and continue the simulation

"sim" is the name of the function which can run the simulation from through programming. check the link below for more details ...

How to run simulink from matlab script, pause the simulation, change constant values, and continue the simulation

"sim" is the name of the function which can run the simulation from through programming. check the link below for more details ...

4 years ago | 0

Question

How to read data from arduino bluetooth?

I am successful in sending data from matlab to arduino via Bluetooth, but I am unable to read the data sent by Arduino-bluetooth...

4 years ago | 1 answer | 0

Answered

what to do if we get Singularity error in Simscape model?

If we get a singularity error we need to add delay to the feedback loop, adding delay is not recommend sometimes so try adding t...

what to do if we get Singularity error in Simscape model?

If we get a singularity error we need to add delay to the feedback loop, adding delay is not recommend sometimes so try adding t...

4 years ago | 0

| accepted

Answered

connecting arduino with matlab through bluetooth

Hi Enas, You can use Bluetooth to transmit the commands from Matlab to Arduino, there are different Bluetooth modules which y...

connecting arduino with matlab through bluetooth

Hi Enas, You can use Bluetooth to transmit the commands from Matlab to Arduino, there are different Bluetooth modules which y...

4 years ago | 1

Question

what to do if we get Singularity error in Simscape model?

*There may be a singularity in the solution. If not, try reducing the step size.* Is the error which I am got which ran my mode...

4 years ago | 1 answer | 0

Answered

How to use both current sensor and voltage sensor of simscape at the same time?

I made a mistake by placing both the sensors is series, by placing voltage sensor in parallel the issue got solved. Thanks gu...

How to use both current sensor and voltage sensor of simscape at the same time?

I made a mistake by placing both the sensors is series, by placing voltage sensor in parallel the issue got solved. Thanks gu...

5 years ago | 0

| accepted

Question

How to use both current sensor and voltage sensor of simscape at the same time?

Hi, Facing problem when I connected current and voltage sensor to same line. I can only see either current or voltage but not...

5 years ago | 1 answer | 0

Question

How to combine 3 videos together

I have three video file in .mp4 format, I want them to be played back to back or one after another. Can some body tell me how to...

5 years ago | 1 answer | 0

Answered

My sampling time is 0.0001 but I am getting 30000 samples for one second , in my simulation what might be the issue? Please help to find the error.

the issue is ...simulink sends same data thrice to the matlab Interpreted function before the lines in the function gets execute...

My sampling time is 0.0001 but I am getting 30000 samples for one second , in my simulation what might be the issue? Please help to find the error.

the issue is ...simulink sends same data thrice to the matlab Interpreted function before the lines in the function gets execute...

5 years ago | 0

| accepted

Answered

what is the problem with the second 'IF' loop ? Program terminates after entering into the loop.

The issue got solved, As I didn't define the variable "n" the program gets terminated, after defining the variable there is no m...

what is the problem with the second 'IF' loop ? Program terminates after entering into the loop.

The issue got solved, As I didn't define the variable "n" the program gets terminated, after defining the variable there is no m...

5 years ago | 0

| accepted

Question

what is the problem with the second 'IF' loop ? Program terminates after entering into the loop.

I am able to enter into the second "IF" but the simulink program terminates after executing the lines in the second "IF" conditi...

5 years ago | 1 answer | 0

Question

What is the problem with this for loop?

deltaK values are should be "zero" for clock time of 0 - 0.999 sec but its giving the values of 0.1.Please help to solve the is...

5 years ago | 1 answer | 0

Question

My sampling time is 0.0001 but I am getting 30000 samples for one second , in my simulation what might be the issue? Please help to find the error.

My simulation has fixed time size pf 0.0001 but I am getting 30000 samples for one second,I am using ODE3 solver. I also using a...

5 years ago | 1 answer | 0

Question

Martix are updating without entering into "for" loop,

I Want to eWithDeltaL, eWithDeltaK to be updated during the time intervals mentioned. function [out] = motor(In) e =...

5 years ago | 1 answer | 0

Question

Martix is getting updated with the value of e,Without adding a new column, Please help me.

persistent eWithDeltaL; ...

5 years ago | 1 answer | 0

Question

How to find step response for variable transfer function?

the coefficients of a transfer function are varying, how to find the step response to all the possible transfer functions. tran...

5 years ago | 1 answer | 0

Question

How to use Fractional PID(nipid) block?

I am using fractional pid block called _nipid_ for finding the step response of a transfer function, but the results are not in ...

5 years ago | 1 answer | 0