34 total contributions since 2012

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...

3 mesi 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...

circa un anno 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...

oltre un anno ago | 0

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...

circa 2 anni 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:...

oltre 2 anni 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. ...

oltre 2 anni 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...

oltre 2 anni 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...

oltre 2 anni 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 ...

circa 3 anni 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...

circa 3 anni ago | 2 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 ...

circa 3 anni 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...

circa 3 anni 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...

circa 3 anni 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...

circa 3 anni 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...

circa 3 anni 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...

circa 3 anni 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...

circa 3 anni 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...

circa 3 anni 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...

circa 3 anni 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...

circa 3 anni 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...

circa 3 anni 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...

circa 3 anni 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...

circa 3 anni 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 =...

circa 3 anni ago | 1 answer | 0

Question

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

persistent eWithDeltaL; ...

circa 3 anni 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...

oltre 3 anni 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 ...

oltre 3 anni ago | 1 answer | 0

Question

what changes i need to make for better answer (fmincon)

>> x0=[10;10;10;0.5;0.5]; >> options=optimset('Algorithm','interior-point'); >> [x,fval]=fmincon(@newfrac,x0,[],[],[],[]...

circa 7 anni ago | 2 answers | 0

Question

step response

i want to find step response of a interval system,in a interval system the coefficients of transfer function vary with in partic...

circa 7 anni ago | 0 answers | 0

Question

need help with optimtool

while using fmincon solver in optimtool.......i got problem...in the window i got a message as Optimization running. Undef...

circa 7 anni ago | 2 answers | 0