
MATLAB
Spoken Languages:
English
Professional Interests:
Fluid Dynamics, Aerospace Engineering, Aerodynamics, Computational Fluid Dynamics (CFD)
Statistics
RANK
118
of 273,532
REPUTATION
984
CONTRIBUTIONS
7 Questions
237 Answers
ANSWER ACCEPTANCE
71.43%
VOTES RECEIVED
202
RANK
11,026 of 18,459
REPUTATION
38
AVERAGE RATING
5.00
CONTRIBUTIONS
1 File
DOWNLOADS
19
ALL TIME DOWNLOADS
338
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Content Feed
Solved
GJam 2017 Kickstart: Vote (Small)
This Challenge is derived from <http://code.google.com/codejam/contest/6304486/dashboard#s=p1 GJam 2017 Kickstart Vote>. This is...
12 hours ago
Solved
Magic!
Check whether the input matrix is a normal magic square: http://en.wikipedia.org/wiki/Magic_square Output the logical value tr...
13 hours ago
Find the value from the integral equation
You can solve it symbollically (This requires symbolic toolbox) syms w m0 A=(cos(4*w)*cos(4*w)+1)/(1+exp(w-m0)); eq=int(A,w,-...
15 hours ago | 1
Solved
Number of cyles and fixed points in a permutation
A permutation can be constructed from one or more sets of elements in cyclic order. A permutation in a single row vector form ...
1 day ago
Solved
Best Square-Shaped Grid for Subplot
If you have x number of plots, find the optimum 'm' number of rows and 'n' number of columns for subplotting where the overall f...
2 days ago
Which is the most accurate way to solve these equations?
"Which is the most accurate way to solve these equations?" Generally, the most accurate way to solve any equation is analytical...
2 days ago | 1
| accepted
Solved
Find the point of intersection of tangents.
Given two points on a conic, find the point of intersection of the corresponding tangents. The conic is given in Cartesian coor...
2 days ago
How can I use one row having full data whose elements repeat [like A(:,1) below] to query another data of the same type but having some elements missing?
A = [0 10; 0 20; 0 25; 1 30; 1 40; 2 50; 2 60; 3 70; 3 80; 4 90; 4 100; 5 10; 5 20; 5 35]; B = [0 110; 0 210; 1 300; 1 405; 2 6...
2 days ago | 1
Solved
Script file size
Determine the file size of a script, "function.m". This is the base scoring method for Cody and the Matlab Contests. A method ...
4 days ago
Solved
Verify Law of Large Numbers
If a large number of fair N-sided dice are rolled, the average of the simulated rolls is likely to be close to the mean of 1,2,....
5 days ago
Solved
Generate Hadamard Matrix
In mathematics, a Hadamard matrix, named after the French mathematician Jacques Hadamard, is a square matrix whose entries are e...
5 days ago
Taking one dimension of a matrix
in = rand(972,48,128); out = in(1,:,:); size(out)
6 days ago | 0
| accepted
Attempt to grow array along ambiguous dimension. it happens when N,M are smaller then the total of A,B. can I make my code work for any value of N,M? if so how would I do that
The number of elements in C is greater than the total number of elements pre-allocated in res. You can not put 22 elements in 2...
7 days ago | 0
| accepted
What is the function of this button? Where is the corresponding official document link?
The function of the button is to generate Fixed-point data via a dialog box. I don't know if there is a documentation specifica...
7 days ago | 0
Error using * Dimension do not match
As you can see here, Jac is 2x2, thus inv(Jac) will also be 2x2 and f is 1x2. The multiplication of 2x2 with 1x2 is not possible...
7 days ago | 0
| accepted
Homogenuous differential equation with conditions
j=22; y=[-8.2,0.6]; As you can see below, you are using non integer values as an index, which is not possible. i = -8.2:j+0.6...
8 days ago | 0
How do I plot the different elements of a matrix in a single plot?
for t = 0:1:100 omega1 = 0.02*cos(0.15*t) + 0.03*sin(0.15*t); omega2 = 0.03*cos(0.15*t) - 0.02*sin(.15*t); omega3...
9 days ago | 0
Generate array of sequence pairs without iteration
A combination of repelem and repmat - M=13;N=8; %corresponding arrays m=1:M;n=1:N; out1=[repelem(m',N,1) repmat(n',M,1)] ou...
10 days ago | 0
| accepted
How to store values in matrix form for differn iteration
Use reshape() %in case of row array x=1:3500; y=reshape(x,7,500)' %in case of column array a=(1:3500)'; b=reshape(a,7,500)...
10 days ago | 0
| accepted
Convert Equastion to Matlab Code
Transfer Function Model Example for reference
11 days ago | 1
How do i plot many short horizontal lines when a value is available?
%random data A=randi(100,1,10) B=randi(100,1,12) %You can not use max, because A has less elements than B elements N=min([nu...
11 days ago | 0
Convert numeric 2D array to array of orders of values
I couldn't think of a vectorized solution (yet), so here is the for loop approach. If and when I find a vectorized solution, I ...
12 days ago | 0
| accepted
Solved
feeling VERY lucky?
Just like Matthew's problem 2793 and Edward's problem 2872 (guess the number that Cody is thinking) but now you must solve it in...
13 days ago
Variable passed through function doesn't work
How are you calling the function? Also, Use strcmp or isequal to compare strings behavior = 'drug' isequal(behavior,'drug') ...
13 days ago | 0
| accepted
can someone check the code i have problem
You can do that without defining C (If I understand what you want to do correctly) B = [4;6;4;6;6;4]; m = 6; n = 30; L = 200...
13 days ago | 0
| accepted
How to write this thetta fuction in Matlab? I have an example code in Python
@Beket, your code needs some changes 94th and 95th line of your code, you used b in c_rinf before defining it. c_rinf = @(r) Q...
13 days ago | 1
Writing IF STATEMENT that omits empty fields in different arrays of a structure
You need to use () with isempty, otherwise it would assume the input to be a string array y = []; isempty(y) isempty y %even...
14 days ago | 0
Arranging a vector to new index position
You mean like this n=15; E = randi(50,1,n) idx = randperm(n) Eprime = E(idx)
14 days ago | 2
| accepted
How can I rearrange this matrix into new one?
Assuming data is homogenous (In pairs throught-out), and end value is greater than or equal to first value. data=[50 67.5; ...
14 days ago | 1
| accepted
Why my function is not vectorized
dv = [1 5 10 20 50]; vc = sqrt(0.8*200*2*365*24*3600)/1000; figure for i = 1:5 dvc = dv(i); %vectorizing the functi...
14 days ago | 1
| accepted