Looping through the element of a matrix and integrating it for the other coloumn

조회 수: 1 (최근 30일)
Hello every one !! I have 5000 by 4 Matrix,cotaining 4 coloumns,that are x,y,z and s values.I need to write a program that will first off all delete all the rows that have s=0.Then it will go to first coloumn i.e x and for a particular value of x it should go to mimimum z and for all minmum value of z it should average all the values of s.This average is saved coresponding to minimum z.Then it should go to next z (remember x is same )and average all coresponding s values.This average is saved corresponding to this z and the prgram should run through all other z values.After this I will have a data containing z and averages of s.Now I want to integrate s along all the values of z using trapozoidal rule.Now program has done with the integration at one value x,then it should procede to next value of x and do the same.Remember it should also save the coresponding integrated z value to a particular x.At the end I want a plot of x against s along y direction.Remeber I am using matlab 2015a.
  댓글 수: 4
Najam us Saqib Fraz
Najam us Saqib Fraz 2020년 10월 18일
I have tried it many times using loops but can't get any thing

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

제품


릴리스

R2015a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by