Community Profile

photo

Temi O


Active since 2019

Followers: 0   Following: 0

Statistics

  • Thankful Level 3

View badges

Feeds

View by

Question


Problems creating stacked plots on MATLAB
I would like to make a stacked plot of 3 y-axis variables, with variable 'time' on the x-axis. I have looked at the help functio...

5 years ago | 1 answer | 0

1

answer

Question


Please could someone explain the basics of how MATLAB updates codes in a script?
I'm kind of teaching myself how to use MATLAB and I try to write my codes like I would do on paper but it does not work out as I...

5 years ago | 1 answer | 0

1

answer

Question


How do I write an if statement for if a variable is an integer, perform a function.
Please, how do I say this? I want to perform a function if Var(i) is an integer? for i = 1: 1000 Var(i+1) = Var(i) + 100e-...

5 years ago | 1 answer | 0

1

answer

Question


How to perform a for loop and if statements with series of conditions?
Please could you check this code to see if it represents what I am trying to achieve? I feel like I've done everything right, bu...

5 years ago | 0 answers | 0

0

answers

Question


How do I calculate the difference between the elements of two vectors given a condition ?
Please, how do I implement this on MATLAB? I would like to find the difference between the value of let say x3 minus the maximum...

5 years ago | 1 answer | 0

1

answer

Question


How do I change the function for certain points in a for loop
time = 0: 0.1: 1000; g(1) = 0 g= zeros (1, length (time)) for t= 1: length (time)- 1 g(t+1)= g(t)+ A % So I want to...

5 years ago | 1 answer | 0

1

answer

Question


How do I make a function accept a vector as an input
Please, how do I create a function called fun that accepts vector A as an input where A= [x1,x2,x3] ? function c = fun(A) %w...

5 years ago | 1 answer | 0

1

answer

Question


How do I write an if statement that says a variable is a error given a condition?
Please how do I write this 'if statement' in MATLAB notation? I ran a simulation N times and would like to find the error rate u...

5 years ago | 1 answer | 0

1

answer

Question


How do you obtain the values for each of n-times simulation of a nested while loop?
I am trying to iterate a 'while loop' 1000 times and get 1000 values of my i. But my code keeps giving me just one value. Please...

5 years ago | 1 answer | 0

1

answer

Question


How can I repeat this simulation 1000 times
U1= 13.5; U2= 9; dt= 0.01; %time step MAXT= 0.5;%maximum time (s) a= 1.2; % threshold x1(1)=0.5*a; x2(1)=0.5*a; for i=...

5 years ago | 1 answer | 0

1

answer