Community Profile

photo

shubham shubham


Last seen: 11 months ago Active since 2019

Statistics

  • Thankful Level 1

View badges

Content Feed

View by

Question


How do i use output of one function as input to the other ?
suppose i have function p= pos(x,y) x=x+y; p=x; end and another function funtion z=neg(p,q) ----> How do I do this wher...

1 year ago | 1 answer | 0

1

answer

Question


How can i divide data into equal parts?
Suppose we have data from 1:1:100.... I want to divide it such that one variable have data r1=1:1:25 another r2= 26:1:50, r3= 51...

1 year ago | 1 answer | 0

1

answer

Question


How to read a text file line by line and store its element into two arrays.
So I have a text file with data like this, and i want to read it in such a way that first element goes into first array and seco...

1 year ago | 1 answer | 0

1

answer

Question


How can i make this code dynamic?
function gr = semm(p,k) if nargin < 2 b=[30,15,6]; end gr=s; gr(:)=4; gr(p> 100 ) = "Not valid output"...

1 year ago | 1 answer | 0

1

answer

Question


How can i append cell arrays
if i give input like this score ({{[8,2,10,8,7,9,1,12], [9,6], 41}; ...

2 years ago | 1 answer | 0

1

answer

Question


How do i assign value of a sub-cell element to a variable
function [g]= rock(s, m, h) rock ({{[7,6,4,8,7,9,1,12], [9,6], 31} {[9,3,5,8,0,1,1,1,15], [10,10]} {[0,0,...

2 years ago | 1 answer | 0

1

answer