Help Needed: Creating MATLAB Program for Liquid Solutions

  • Thread starter Thread starter Sergiomppinto
  • Start date Start date
  • Tags Tags
    Matlab Program
AI Thread Summary
A user seeks assistance in creating a MATLAB program to analyze liquid solutions, specifically to measure the mixture levels of water and detergent over time and position. They describe scenarios where the concentration of sugar in water changes, affecting the measurement values based on depth. The discussion highlights the need for coding help to visualize these changes effectively. Additionally, a separate inquiry about placing images in a 3D matrix and plotting them transparently is presented, indicating a broader interest in MATLAB's image processing capabilities. The thread emphasizes the importance of demonstrating initial effort to receive constructive feedback.
Sergiomppinto
Messages
1
Reaction score
0
Hi i'mm needing help creating a MATLAB program to calculate liquid solutions, I'm going to try to explain the program i want,

imagine you have to 2 water solution one is water the other one is detergent, what i have to do is to create a code that will allow me to mesure the level of misture between the 2 solution being the variables the time and the position.

Another exemple, imagine you have a glass and you have a solution of water and sugar completlly dissolved, in the beginning you have a level of 0 misture, it means you have 50% sugar and 50% water, as the time goes bye the sugar starts to get on the bottom of the glass and the water (supostly without sugar on the top of the glass) so on the bottom you have a value of -1 that tells you that there is only sugar and on the top you have a value of 1 that tells you that there is only water there but as you change the position of the mesure the value changes allowing you to know if is has more sugar or water, and as the time goes bye in the same place the value also changes more positive on the top and more negative on the bottom.

Can anyone help me creating this?

(sergiomppinto@hotmail.com)
 
Physics news on Phys.org
You probably won't get much help here until you show that you've made some effort at getting started on it.
 
Dear Sirs.,

I'm starting to work with image processing. Suppose I have a 3D matrix MMM with the following size: 41x41x21. (X- 41 points Y-41 points Z- 21 points).
I want to place on MMM(:,:,1) and on MMM(:,:,21) 2 bmp pictures. How can I do it but
more importly how do I plot MMM with the condition that MMM(:,:,2:20) is transparent.

I assume that the 2 bmp pictures are colored and MMM doesn't have to be a 3D matrix.
I'm more interested in showing the 2 pictures with a space between them.

Many Thanks
Amir Yefet
 
Thread 'Have I solved this structural engineering equation correctly?'
Hi all, I have a structural engineering book from 1979. I am trying to follow it as best as I can. I have come to a formula that calculates the rotations in radians at the rigid joint that requires an iterative procedure. This equation comes in the form of: $$ x_i = \frac {Q_ih_i + Q_{i+1}h_{i+1}}{4K} + \frac {C}{K}x_{i-1} + \frac {C}{K}x_{i+1} $$ Where: ## Q ## is the horizontal storey shear ## h ## is the storey height ## K = (6G_i + C_i + C_{i+1}) ## ## G = \frac {I_g}{h} ## ## C...
Back
Top