![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/7588931_1522122244754_DEF.jpg)
Sagar Saxena
2018 年からアクティブ
Followers: 0 Following: 0
統計
MATLAB Answers
15 質問
0 回答
ランク
of 157,776
コントリビューション
0 問題
0 解答
スコア
0
バッジ数
0
コントリビューション
0 投稿
コントリビューション
0 パブリック チャネル
平均評価
コントリビューション
0 ハイライト
平均いいねの数
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...
6年以上 前 | 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,...
6年以上 前 | 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...
6年以上 前 | 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...
6年以上 前 | 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...
6年以上 前 | 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...
7年弱 前 | 0 件の回答 | 0
0
回答質問
HI, Following code generates 3 subplots for 3 different value of ik in 1 window , since the loop iterates ik= 1:3. I need to modify this peice of code to generate a single plot for variable Sum merging all three value of ik into one plot
Sum=0; for ik=1:3 Image = S(ik)*((abs(Phi(:,:,ik)).^2)); Sum= Sum+Image; subplot(3,1,ik); mesh(fftsh...
7年弱 前 | 1 件の回答 | 0
1
回答質問
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 ...
7年弱 前 | 2 件の回答 | 0
2
回答質問
I want to see the plot for absolute value of FPhi(abs(Fphi)) in real frequency grid and not with this fftshift. What should i do to see the real plot and not the centered/fftshift one. P.s I tried removing the fftshift commands but didn't work.
mesh(fftshift(fx),fftshift(fy),fftshift(abs(FPhi(:,:,ik))),'FaceColor','flat'); view(0,90);
7年弱 前 | 0 件の回答 | 0
0
回答質問
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)....
約7年 前 | 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...
約7年 前 | 0 件の回答 | 0
0
回答質問
I want to understand the meaning(Syntax) of this line. Someone please explaiin what conditions are being used and what does it exactly mean in terms of variables used
Kf(fmag<=1) = ((1-(nimage*magnification*fth(fmag<=1)).^2)
約7年 前 | 1 件の回答 | 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);
約7年 前 | 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 = ...
約7年 前 | 1 件の回答 | 0