photo

Archit


2012년부터 활동

Followers: 0   Following: 0

메시지

Student
Professional Interests: Computers

통계학

All
  • First Answer
  • Solver

배지 보기

Feeds

보기 기준

질문


help: efficiently pass a lot of variables to a function
Hi, I have a function which is called 10^5 times. The problem is this function needs like 40 values (mostly scalars or s...

거의 11년 전 | 답변 수: 3 | 1

3

답변

답변 있음
how to call a specific variable in matrix inside loop process..??
a way (maybe a better way exists, but i am not very proficient in matlab yet) to do that is a=find(xdata(:,1)==2); % a=...

대략 11년 전 | 0

질문


combined operations on struct arrays
I have a struct S S=struct() It has 2 fields a,b S(1).a=2; S(2).a=3; S(3).a=4; now how do i do something...

대략 11년 전 | 답변 수: 1 | 0

1

답변

질문


Different variable names in different runs of a script
Is it possible to get different variable names in different runs of a script. Eg. lets say we have following script ...

11년 초과 전 | 답변 수: 1 | 0

1

답변

문제를 풀었습니다


Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...

11년 초과 전

문제를 풀었습니다


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

11년 초과 전

문제를 풀었습니다


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

11년 초과 전

문제를 풀었습니다


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

11년 초과 전

질문


apply a function to vector
I have a function like fn=@(a) [a(1,:).^2 ; a(2,:).^2 ; 1] i want to apply it to matrix w=[2 3 4 5; 1 2 3 4] b...

12년 초과 전 | 답변 수: 2 | 0

2

답변