photo

Sagar Saxena


2018년부터 활동

Followers: 0   Following: 0

통계

MATLAB Answers

15 질문
0 답변

순위
157,977
of 300,813

평판
0

참여
15 질문
0 답변

답변 채택
53.33%

획득한 표
0

순위
 of 21,086

평판
N/A

평균 평점
0.00

참여
0 파일

다운로드 수
0

ALL TIME 다운로드 수
0

순위

of 171,169

참여
0 문제
0 답안

점수
0

배지 수
0

참여
0 게시물

참여
0 공개 채널

평균 평점

참여
0 하이라이트

평균 좋아요 수

  • Thankful Level 2
  • Thankful Level 1

배지 보기

Feeds

보기 기준

질문


In a sorted vector ,how do I compare first element to other elements and then find if there are any duplicates , if yes take their indexes and replace it with 0
A = [ 1, 1 , 2, 3, 4] I want to first compare first element to all other elements, if there is any duplicate (like 1, 1 in t...

대략 7년 전 | 답변 수: 4 | 0

4

답변

질문


I have a main class which takes 2 arguments, Two arguments(Same) are coming from 2 another classes which are doing differnet computations . Now I need to define a 3rd argument which allows user to specify which class he wish to chooses .
Lest say : Main Class is : obj = mainClass (a,b) other 2 classes which uses a,b are : 1) obj = Sum(a,b) 2) obj = Diff(a,...

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

1

답변

질문


I need to map a binary array to 2 differnet values corresponding to 0 & 1
A= zeros(320,320); A(60:180,60:180)=1; lets say I wanna make all 1's = 2+3i and all 0's equals to 8-4i. What would be the...

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

1

답변

질문


How do I fill an array with 1's in particular rows and columns that I want
array = zeros(100, 100) Now, I need to make a square filled with 1's(on the boundary as well as inside), from row 20 to 80 an...

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

1

답변

질문


Whats wrong with the below equation , I get an error message when i keep this equation in a for loop to run multiple times.
Expected one output from a curly brace or dot indexing expression, but there were 2 results. Error in line : I= obj...

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

1

답변

질문


I am plotting (x,y) coordinates in a simple plot and the plotted values lies in 1st Quadrant.However, I want to see all the 4 quadrants , how to customize it?
Lets say my cordinates are as follows x= [0 1 2 3 4 5] y= [0 1 2 3 4 5] However, i want to set my axis from : x= (-20 ,...

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

2

답변

질문


How to save variable (Sum1) which is a plot , so that I can use it in later subsection to do some more computations.
for ik=1:40 Image = S(ik)*((abs(Phi(:,:,ik)).^2)); Sum1= Sum1+Image; end mesh(fftshift(X),fftshift(Y), fft...

거의 8년 전 | 답변 수: 0 | 0

0

답변

질문


How do I multiply two variables of form A(:,:, i) and B(:,:,i) where i = 20
SO basically , I need the product of these 2 variables for 20 iterations and then add the products. I tried using * and .* but ...

거의 8년 전 | 답변 수: 2 | 0

2

답변

질문


I need to model a source pattern shift on a mesh grid( when light source is tilted by some angle theta)
Situation: when light rays falls vertically (i.e zero degree tilt) , lets say the pattern formed on a grid is at location (x,y)....

거의 8년 전 | 답변 수: 0 | 0

0

답변

질문


If anyone can help conceptually,
I have a code which models the light coming from a source normally (In terms of frequency and Wavelength) If I want to tilt the...

거의 8년 전 | 답변 수: 0 | 0

0

답변

1

답변

질문


What is meant by this syntax : ( another variable in brackets after a variable)
Jmatf11(fmag>0) = (fx(fmag>0)./fmag(fmag>0)).^2 .* Jmf(fmag>0);

거의 8년 전 | 답변 수: 1 | 0

1

답변

질문


What is meant by this syntax : L(1) , what does these braces after any variable mean?
%This is just a portion of code so don't bother about actual values: L = a; n = n1; fmax = n./L; dfx = 1/L(1); dfy = ...

거의 8년 전 | 답변 수: 1 | 0

1

답변