Community Profile

photo

Ajay Pherwani


KPIT

Last seen: circa 2 mesi fa Attivo dal 2013

Sr. Software Engineer in KPIT Working in Automotive domain Professional Interests: Simulink , S- Function , GUI, m-scripting, TLC , Embedded C, Automotive domain, Controls

Statistics

All
  • Thankful Level 3
  • Knowledgeable Level 1
  • First Answer
  • Solver

Visualizza badge

Content Feed

Visto da

Domanda


How to change waitbar color in Matlab R2015A
I have a scripting running on Both Matlab versions ( R2013B and R2015A) h = waitbar(2/10,'Opening..') Matlab R2013B give...

oltre 7 anni fa | 0 risposte | 0

0

risposte

Domanda


Find compilation time of a simulink model
Is there are way find the compilation time of a model ? I have used : tic;set_param('model','SimulationCommand','update');to...

circa 8 anni fa | 0 risposte | 0

0

risposte

Risposto
Adding element within vector without overwriting the existing value
expitemorder is a 8x1 cell array/vector , to update any element : - expitemorder{ _any_index_,1}='value';

circa 8 anni fa | 0

Risposto
Passing data from Flash to MATLAB through Javascript
Try something like this: url = 'http://www.example.com/'; html = urlread(url); % Use regular expressions to rem...

circa 8 anni fa | 0

Risposto
how to emulate "hold on" in 2014b
hold on and hold all are the same in R20104b Matlab 2014b help document suggests that they might remove hold all in future !! ...

circa 8 anni fa | 0

Risposto
average of each 10 values of an external file and save in new file
If it is not necessary to do programming and u just want the results just use the excel marco's , should be easy !!

circa 8 anni fa | 0

Domanda


can we control Data Inspector from command line ?
I am using Data logger in 2013 with one of my model. After configuring the signals to log , I run a script which simulates my...

oltre 8 anni fa | 2 risposte | 0

2

risposte

Domanda


how to optimize for loops and while loops in m scripts ?
Are there any practices you follow that have a tendency to optimize and reduce the loops in your m-script ? are there any avail...

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


how to compare special characters in string
I have a strings string='$(0)parameter' I want to find if '$' is present in the string or not. Can any one tell me how ...

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


How to read a string data from excel sheet ? Or to read a single row having charaters
I want to read an excel sheet . 1st row all variable names 2: N th row all data I just want to read the 1st row . Is that ...

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


how to call a matlab function from Sfunction ?
how to call a basic matlab function from Sfunction ? Also in order to concatenate a string can i use "strcat" in S function

oltre 8 anni fa | 0 risposte | 0

0

risposte

Risposto
I dont see an error
display([' Nif = ',num2str(Nif,'% 10.2f') ' [-]']); missing a ,(comma) after ' Nif = '

oltre 8 anni fa | 0

Risposto
Simulink Constant Block multiple string input
instead of putting qq =[a b c] in constant block update the constant value as [ a b c ]

oltre 8 anni fa | 0

Risposto
What does this line does? "H(ind(:,k), ind(:,k))=S"
assuming k = 4 and ind is an matrix of 4x6(4 rows x 6 columns ) -->ind(:,k) will give u all elements of column 4(value of k) in...

oltre 8 anni fa | 0

Risposto
Can anyone interpret this short code for me?
I guess T_test should get values from T_min to T_max with the interval of ( or step value of ) eps/t_span

oltre 8 anni fa | 0

| accettato

Domanda


how to know whether the model running is in simulation model, code gen mode or in rapid accel mode in script?
In model initialization , If I want to know whether the model running is in simulation model code gen mode or rapid accel mode ...

oltre 8 anni fa | 0 risposte | 0

0

risposte

Domanda


What is a non-inlined S function
I was trying to create my own library blocks for a model. It simulated , but when i tried to make a build it throw-ed an error ...

oltre 8 anni fa | 2 risposte | 0

2

risposte

Risposto
I am trying debugg a S function on Visual studio , but I Matlab 2010A cannot locate the visual 2010 compiler , when i do "mex -setup"
Matlab 2010A was launched after Visual studio 2010 , hence visual sudtio didnt had the support for Matlab 2010. They have rele...

oltre 8 anni fa | 0

| accettato

Domanda


how to get the port data inside a mask editor parameter/variable of a subsystem ?
Want to read a data on port in the mask editor . I have an script running (which is called in mask editor),depending upon the v...

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


Can we call Per script , from Level 2 S Function ?
Working on S Function of a block. Using C to write it. Need to call a Perl script once the simulation is over . I know ho...

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


I am trying debugg a S function on Visual studio , but I Matlab 2010A cannot locate the visual 2010 compiler , when i do "mex -setup"
I am working on S Functions , need to debug them. Visual Studio 2010 is installed in my 32 bit machine. When I try to select...

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


How to generate S-Function using legacy tool box for a Function having multiple function calls in it
I am working on S-Function and I am still a beginner. For a simple adder function I was able to generate S-function block and...

circa 9 anni fa | 1 risposta | 0

1

risposta

Domanda


Can we call a m-script during model simulation ?:
I want to run a script , which will update some of my parameters in the workspace. Is it possible to call a m-script during mod...

circa 9 anni fa | 1 risposta | 0

1

risposta

Domanda


How to read a text or a .c file without comments into a cell array ?
I have a c file name 'function.c' It have code and comments as well comments are noted with '/*' '*/' Or '//' OR sometimes '...

oltre 9 anni fa | 3 risposte | 0

3

risposte

Domanda


Can we get a handle of any .exe file running in Windows using m-scripts ?
If there is a program running in VB++ or in C-Sharp or in Java , Is it possible to do any kind of automation with them, using ...

oltre 9 anni fa | 2 risposte | 0

2

risposte

Domanda


What is the range of datatype double in Matlab ?
If we assign any value to a variable , Matlab assigns its data type as double . What is the max range of that variable ?

oltre 9 anni fa | 1 risposta | 0

1

risposta

Domanda


How can we add a If-action-subsystem to a any model using m-Scripts ?
I am using a script to add blocks in the model ( using add_block function ) Can any one tell me how can i add a "If Action Su...

oltre 9 anni fa | 1 risposta | 0

1

risposta

Domanda


Can we generate macro function in code, using simulink model and RTW EC auto coder ?
We are currently having lot of for loops , and they are just to fetch the data from a constant array in to a local data array ...

circa 10 anni fa | 1 risposta | 0

1

risposta

Domanda


How to get a handle of state chart ? and how to read the chart flow using script ?
1.how can I read the number of charts present in the model ? 2.Also how to read a logic inside the state chart ? ( if we consid...

circa 10 anni fa | 1 risposta | 0

1

risposta

Domanda


How to make a variable available for two functions in scripting
I am working on scripts I have a varaible 'xyz' that will be updated in function_1 and i want to read it in function_2 ho...

circa 10 anni fa | 1 risposta | 0

1

risposta

Carica altro