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

1 回表示 (過去 30 日間)
Najam us Saqib Fraz
Najam us Saqib Fraz 2020 年 10 月 18 日
コメント済み: Najam us Saqib Fraz 2020 年 10 月 19 日
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
Najam us Saqib Fraz
Najam us Saqib Fraz 2020 年 10 月 19 日
Do you have any idea??

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

製品


リリース

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by