I`m trying to write a code that will change the incremented value, delta, in half until a condition is met. The condition is a relative error. I know that I need to include a while loop until this error is met. Is there a way that can I redefine the value of delta in a loop?
"I am struggling to put a loop in place to run A1A1A1A1 through F1A1A1A1" Well, it is no surprise that it is a struggle for you, because you picked the worst possible way to store data: in lots of separate variables and putting meta-data into their variable ...
Hello, I have a .mat file from a source containg structures with variable names as A,B,C etc. I'm loading those to my workspace,creating a array for variable names and want to access the structures in a for loop. Error Dot indexing is not supported for variables of this type. ---...
I have variable with name x with varying size of some 10000*2. 2 columns are fix, row value changing. I am getting that variable inside the for loop. How should I autosave variable inside loop ? Autonaming for every loop condition will be useful. Please reply. I want to use variable ...
Hi, I have a while loop in my matlab code and one of the variables in the loop 'Threshold_Value' is intially set to 0.5, but i would like to use a slider button in my matlab graphical user interface to adjust this value from 0 to 3.5, This value is used to change the ...
hi, I have a problem to define a loop in livelink. In the loop geometries with different shapes are created. The problem is how to define a parameter varies in loop? The .m file is attached below. Thanks! Attachments: R3.m 2
Open in MATLAB Online ThemeCopy sprintf('S0%d',n) = 2.*(I0final); I have a function with input n, and I want to store the product of 2*(I0final) as S0n (ie for n = 0, I want 2*I0final to be stored as S00). However, I do not know how to change t...
How to change values from negative to positive and vicer versa in a loop1.9464 -0.1764 0.1545 -0.0140 0.0123 -0.0011 0.0010 -0.0001
Learn how to create a matrix that has an underlying pattern in a for loop, as well as how to use preallocation for the same process.
The problem is: I've to keep track of the following: For every three or more consecutive events, if the events are more than 0.3 and less than 1, and the breakpoints in the middle are less than two, my counter should increase by 1. The next loop should begin...