Community Profile

photo

Priya


Active since 2014

Statistics

All
  • First Review
  • First Submission
  • Thankful Level 4

View badges

Content Feed

View by

Question


M-file created in previous version, not working in advanced version.
Hi, The m-file and Simulink model which I created in R2012b version is not working suddenly in R2013a version. Actually R2012...

9 years ago | 2 answers | 0

2

answers

Question


how to run the simulink block four times ie., for four different conditions using for loop?
Hi, I need to run my Simulink model for four times as I have assigned four conditions. Please find the code below. k_A_...

9 years ago | 0 answers | 0

0

answers

Question


How to perform element-wise matrix multiplication in simulink?
Hi, I have modelled the equations below in Simulink and I wanted to check them through simulation. But when modelled in Simul...

9 years ago | 1 answer | 0

1

answer

Question


error using plot:Vectors must be the same lengths
I get this error in the plot line. V=20; t_sim=0.02; sample_distance=0.2; ts=sample_distance/V; step_time=1...

9 years ago | 1 answer | 0

1

answer

Question


Derivative input 2 of '... /Integrator2' at time 0.012988383999014474 is Inf or NaN. Stopping simulation....
Hi, Derivative input 2 of 'Single_wheelset_susp_mass/Lateral wheelset_inertia /Integrator2' at time 0.012988383999014474 i...

9 years ago | 0 answers | 0

0

answers

Question


How to solve division by zero error ?
Hi, I have designed a model in Simulink and when I run the program it gives a warning and an error, Warning: Division by ...

9 years ago | 1 answer | 1

1

answer

Question


To plot the model error against time
Anyone please help me plot the model error against time in the subplot(212) V=20; t_sim=30; ...

9 years ago | 1 answer | 0

1

answer

Question


How to assign the difference of system input and the states in the input matrix?
Hi, I'm quite confused on how to assign the input matrix which is a difference of two numbers.Well, they aren't really numbers,...

9 years ago | 1 answer | 0

1

answer

Question


eigenvalue analysis of a state space model
Hi, I'm trying to do an eigenvalue analysis with the information from the pole-zero plot, which is as below It is ob...

9 years ago | 1 answer | 0

1

answer

Question


How to select corresponding value from an array?
When I use the following expression for calculating theta I get a value in the range specified for theta below (i.e., 0.5 to 90)...

9 years ago | 1 answer | 0

1

answer

Question


How to choose a value from the plot?
plot(contact_geometry.y-d,contact_geometry.r_L) Could someone please tell me, is it possible to do coding in such a way t...

9 years ago | 1 answer | 0

1

answer

Question


How to plot multiple points on the same graph with changing values of parameters for each iteration?
Hi, I need to plot s_x vs. f_x where f_x keeps changing for each iteration . Hence f_x must be plotted against s_x for every...

9 years ago | 1 answer | 0

1

answer

Question


How to group the corresponding elements of an array?
Hi, I'm calculating the value of a parameter f_x whose value changes according to the following conditions. I haven't s...

9 years ago | 2 answers | 0

2

answers

Question


How to plot the five ellipses in the same figure?
Here is my code, where when xi_a takes a new value from xi for each iteration, the semi-axes of my ellipse changes. Now my q...

9 years ago | 2 answers | 0

2

answers

Question


Colour mismatch between plot and legend
I don't know why the legend and plots don't match. I get the legend colours as defined below but the plot colours are all blue. ...

9 years ago | 1 answer | 0

1

answer

Question


What should be modified inside the for loop?
For each value of f_x_loop, I need x_a to take one of the five values from s_x_index for each iteration instead of one value for...

9 years ago | 1 answer | 0

1

answer

Question


how to save plots so that they are in the same graph for different conditions
Hi, I need to generate plots for four different conditions. So I will be having four curves on the whole. Now I get a plot fo...

9 years ago | 1 answer | 0

1

answer

Question


Attempted to access colors(6); index out of bounds because numel(colors)=5
Hi, I tried executing this loop, colors = ['m';'y';'b';'g';'c']; loop_ind = 1; for k1 = 1:5 figure(4); linespec ...

10 years ago | 2 answers | 0

2

answers

Question


The colors displayed in the legend do not match the plot colors.
This is my code, colors = ['r';'m';'b';'g';'c']; symbols = ['*-';'+-';'*-';'+-';'*-']; for k1 = 1:5 colsym = [colors...

10 years ago | 1 answer | 0

1

answer

Question


Plotting for particular values of x-coordinate
load('wheel_rail_AW.mat') S = contact_geometry x_new=S.y; y_new =S.r_R; xi = min(x_new) + (max(x_new)-min(x_new))...

10 years ago | 2 answers | 0

2

answers

Question


How to choose a random value from an array?
Hi, I have an array of values and I need to frame an expression such that it chooses the value from the array automatically i...

10 years ago | 2 answers | 1

2

answers

Question


How to plot multiple iterations on the same axes?
Hi, I'm trying to plot the below. In x-axis, I have s_x_index=[0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.10] ...

10 years ago | 2 answers | 0

2

answers

Question


What should be the coding for the problem mentioned?
Hi, I have an input y whose value keeps changing for different iteration and y is being fed to two parameters namely r and R....

10 years ago | 1 answer | 0

1

answer

Question


An expression for choosing a value from the array automatically
Hi, I have an array of values and I need to frame an expression such that it chooses the value from the array automatically i...

10 years ago | 1 answer | 1

1

answer

Question


To plot an ellipse
Hi, I have got the semi axes, with that how to plot an ellipse in matlab. I have tried using the function 'pdeellip', but it ...

10 years ago | 2 answers | 0

2

answers

Question


How to open a .mat file in Matlab
Hi, I'm trying to open a .mat file in Matlab, but am unble to do it. I followed the instructions from this link below, <h...

10 years ago | 3 answers | 1

3

answers

Question


How to get the damping ratio of an underdamped response
I have got a step response which seems underdamped and I have also used the 'damp' function to retrieve the values of damping ra...

10 years ago | 1 answer | 0

1

answer

Question


Characteristics of a time response plot
Hi, I'm trying to see the characteristics of the plot, which we normally do by right clicking on the plot. But if I right cl...

10 years ago | 1 answer | 0

1

answer

Question


Characteristics of a step response plot
Hi, I tried getting the rise time and %overshoot from a step response by right clicking and viewing the characteristics. But ...

10 years ago | 1 answer | 2

1

answer

Question


What does the function 'norm' do?
Please tell me what does the 2(in bold) in the below expression mean? residsumsq = norm(y-yhat, *2* )^2; Also, Is the norm...

10 years ago | 3 answers | 0

3

answers

Load more