Community Profile

photo

Lakshmikruthiga Ponnusamy


Last seen: 4 years ago Active since 2019

Statistics

  • Thankful Level 2
  • Thankful Level 1

View badges

Content Feed

View by

Question


All possible combination of variables in equation to give best result.
Suppose I have A+B = answer and A ranges from 1 to 10 and B ranges from 1 to 10. How do I use matlab to solve for all values of ...

4 years ago | 1 answer | 0

1

answer

Question


error: x(2): out of bound 1
I have code of the following. I did everything I could do, but couldnt overcome this error. When I execute the below function ...

5 years ago | 1 answer | 0

1

answer

Question


i have following equation. Totally there are two equations with two unknowns "x, y". But when I run it takes infinite time to solve and finally shows error. Where am I going wrong?
iter=1; Patm=100000; presB=Patm*ones(iter,1); PSB=Patm*ones(iter,1); PT=Patm*ones(iter,1); AT=0.0071094; AB=0.010010; GAM...

5 years ago | 1 answer | 0

1

answer

Question


I have the following code. The values of displ in stage1 and stage2 are plotted in displ vs time graph. Thus a single curve is obtained. similarly pressure and velocity is also plotted.
I want the graph to be colored in such a way that stage one is in blue and stage 2 is in red in displ vs time graph, similarly f...

5 years ago | 0 answers | 0

0

answers

Question


I have the following code. The values of displ in stage1 and stage2 are plotted in displ vs time graph. Thus a single curve is obtained.
displ=zeros(100,2) tim=zeros(100,1) for i=2:100 v=5; dt=1*10^-4; function [displ_f]=stage1(displ_i) dt=1*10^-4; v...

5 years ago | 1 answer | 0

1

answer

Question


How to access global variable inside function. Note that I am using octave. the value of variable 'a' changes continuously. I'm getting syntax error >>> global m(1,1) = a;
for i=1:10 global m(i,1) = a; function p = h() global m(i,1); m(i,1) endfunction h()

5 years ago | 1 answer | 0

1

answer

Question


I have program of following format. I need the plot to be of different colors based on the if statement in program. How do I do it?
iter=1500; for I=2:iter function stage1 body //solves 2nd order ODE and gives displacement and velocity// end function func...

5 years ago | 0 answers | 0

0

answers