Professional Interests: Aeroelasticity, Control Systems, Hydraulics

Question

Add functions to standard path

I have a created a library of functions, which I would like them to be accessible from any location, on every start up. What's t...

plus de 3 ans ago | 1 answer | 0

Question

Stop and Continue Iterations

I am running a loop as follows: tol = 1e-6; while err < tol % code disp(tol) end During runtime, I decid...

environ 4 ans ago | 1 answer | 1

Question

How can I use disp() command when submitting jobs to cluster running on 'R'?

I am running a MATLAB code on a cluster which uses something called 'R'. I submit the job using the command qsub using a .sh fil...

plus de 4 ans ago | 0 answers | 0

Question

Invalid first data argument

The following code: plot(x,y,'Marker','*','Color','r',x2,y2,'Marker','--','Color','b') generates this error: "Invalid f...

plus de 4 ans ago | 1 answer | 0

Question

Is it possible to simplify 'piecewise' expressions by preimposing conditions?

I am solving a problem involving integration of the expression 'K' defined over 'r' and 'z' in symbolics, along with parameters ...

plus de 4 ans ago | 0 answers | 0

Question

Legend for variable number of plots

Hi, I am plotting a variable 'y' whose size is 'm-by-n' against 'x' whose size is 'm-by-1'. So, I get 'n' plots on the current f...

plus de 4 ans ago | 1 answer | 0

Question

'simplify' expression not efficient in Matlab2015

I used Matlab 2015 to simplify an trigonometric expression, but in vain. It is not able to replace 1-sin^2() with cos^2(). If my...

plus de 4 ans ago | 1 answer | 0

Question

Does symbolics give wrong results?

I was doing matrix operations using symbolics, I found out to my surprise, that the results where wrong and unrepeatable. Same o...

plus de 4 ans ago | 1 answer | 0

Question

chol() gives error for a (barely) positive definite matrix.

I have a matrix whose smallest eigenvalue is positive but very close to zero (~ 1e-17). Theoretically, it should be a positive s...

environ 5 ans ago | 1 answer | 0

Answered

Draw a line between two points

Frame an equation between two of the points of the form y=mx+c. then replace x with the x-cordinate of the point to be checked, ...

Draw a line between two points

Frame an equation between two of the points of the form y=mx+c. then replace x with the x-cordinate of the point to be checked, ...

environ 7 ans ago | 0

Question

How to initialize variables (parameters) in Simulink

I have a model of a mechanical system in simulink, which has a lot of parameters which are NOT variables mathematically speaking...

environ 7 ans ago | 1 answer | 0

Answered

indexing diagonals out of a 3d matrix

I think this would work elegantly. But I don't know if this would take up alot of time/memory for your purposes. for i=1:10...

indexing diagonals out of a 3d matrix

I think this would work elegantly. But I don't know if this would take up alot of time/memory for your purposes. for i=1:10...

environ 7 ans ago | 0

Answered

Creating a solid/surface of revolution from discrete data?

First of all your velocity profile is not symmetric about y=0, so if you rotate that graph by 180, you will not get a closed sur...

Creating a solid/surface of revolution from discrete data?

First of all your velocity profile is not symmetric about y=0, so if you rotate that graph by 180, you will not get a closed sur...

plus de 7 ans ago | 0

Question

Different scope result for two different run times

Here are two scopes of the same simulation run for different run times 50s and 100s. For 50 s, the concerned parameter remains c...

plus de 7 ans ago | 1 answer | 1

Question

Stable model, but results show instability

i have recently made a simulink model of a mechanical system, though complex in nature, but basically it is a second order ODE. ...

plus de 7 ans ago | 2 answers | 0

Question

Simulation time

suppose i carry out a simulation for 10 seconds and i get satisfactory results. now i run the simulation for 20 sec, it again st...

plus de 8 ans ago | 1 answer | 1

Question

Simulink: Scope time scale

I am simulating the model for 2 seconds, but the scope shows a time history of 0.8 to 2 seconds only, even if i use the autoscal...

plus de 8 ans ago | 1 answer | 0