SALAH ALRABEEI
Followers: 0 Following: 0
Feeds
답변 있음
Why my graph not same as research paper?
You have two mistakes here s=(exp(p_0)*T); The three s in the code should be this s=(exp(-p_0*T));
Why my graph not same as research paper?
You have two mistakes here s=(exp(p_0)*T); The three s in the code should be this s=(exp(-p_0*T));
2년 초과 전 | 1
답변 있음
How to find x value for certain y value of a lineplot in matlab
You can find the the EV from the index of p value. Example; a=[4,2,3,5,6,7] b = a.^2 Now, to find what is a at b= 9! inx...
How to find x value for certain y value of a lineplot in matlab
You can find the the EV from the index of p value. Example; a=[4,2,3,5,6,7] b = a.^2 Now, to find what is a at b= 9! inx...
2년 초과 전 | 2
답변 있음
Integration takes time too long
Matlab is not good enough to symoblically ( analyitcally) integarate or solve such complex equations). If you want the the analy...
Integration takes time too long
Matlab is not good enough to symoblically ( analyitcally) integarate or solve such complex equations). If you want the the analy...
2년 초과 전 | 0
답변 있음
how to find the indices after sorting columns of a matrix
If I got you correctly, I think you want you want this clear A = magic(4) [n,m]=size(A) [As,Cur_ind]=sort(A,'ascend') Or...
how to find the indices after sorting columns of a matrix
If I got you correctly, I think you want you want this clear A = magic(4) [n,m]=size(A) [As,Cur_ind]=sort(A,'ascend') Or...
2년 초과 전 | 0
| 수락됨
답변 있음
compare groups of items regarding overlaps
Use [val,ndxA,ndxB] = intersect(A,B) It will give you the overlapping val and its index in both groups A and B
compare groups of items regarding overlaps
Use [val,ndxA,ndxB] = intersect(A,B) It will give you the overlapping val and its index in both groups A and B
3년 초과 전 | 0
| 수락됨
답변 있음
How to get rid of for loop?
function [x_vals,y_vals,I,A]=monte_carlo_syms(x,y,f,g) x_vals=unifrnd(0,1,[200,1]); y_vals=unifrnd(0,1,[200,1]); I = nan*leng...
How to get rid of for loop?
function [x_vals,y_vals,I,A]=monte_carlo_syms(x,y,f,g) x_vals=unifrnd(0,1,[200,1]); y_vals=unifrnd(0,1,[200,1]); I = nan*leng...
3년 초과 전 | 0
답변 있음
How to plot vectors
check this <https://www.mathworks.com/matlabcentral/answers/755919-how-to-plot-contour-lines-on-joint-histogram-plot>
How to plot vectors
check this <https://www.mathworks.com/matlabcentral/answers/755919-how-to-plot-contour-lines-on-joint-histogram-plot>
3년 초과 전 | 0
답변 있음
Hi, How can I make the axis look like in the attached figures?
See this example x = linspace(-5,5); y = x.^2; plot(x,y) xticks([-5 -2.5 -1 0 0.25 0.5 0.75 1 2.5 10]) text(0,15,'$\fra...
Hi, How can I make the axis look like in the attached figures?
See this example x = linspace(-5,5); y = x.^2; plot(x,y) xticks([-5 -2.5 -1 0 0.25 0.5 0.75 1 2.5 10]) text(0,15,'$\fra...
3년 초과 전 | 0
| 수락됨
답변 있음
Updating values in a 2x2 matrix , taking values from result of an iterative operation.
t=1:30; p1= 1-(5/6).^t; p2=1-p1; p3=zeros(1,30); p4=ones(1,30); A=cat(1,p1,p3,p2,p4) A_all= reshape(A,2,2,30)
Updating values in a 2x2 matrix , taking values from result of an iterative operation.
t=1:30; p1= 1-(5/6).^t; p2=1-p1; p3=zeros(1,30); p4=ones(1,30); A=cat(1,p1,p3,p2,p4) A_all= reshape(A,2,2,30)
3년 초과 전 | 0
답변 있음
How can I draw a line over a 2D surface plot in an app?
yline(put the value)
How can I draw a line over a 2D surface plot in an app?
yline(put the value)
3년 초과 전 | 0
| 수락됨
답변 있음
PLOT 2D graph and matrices
You need to define several values of p and s, then find the svds of K for each value of k p and s; See thebexample below ...
PLOT 2D graph and matrices
You need to define several values of p and s, then find the svds of K for each value of k p and s; See thebexample below ...
3년 초과 전 | 0
| 수락됨
답변 있음
How to categorize month/day/year into a period of months
Assuming your date array is called A. This might work Achar = char(A); lab = A(:,1);
How to categorize month/day/year into a period of months
Assuming your date array is called A. This might work Achar = char(A); lab = A(:,1);
3년 초과 전 | 0
답변 있음
How to find value closest to set value after a certain index in a matrix
[N,IN] = min(abs(M/2-x)
How to find value closest to set value after a certain index in a matrix
[N,IN] = min(abs(M/2-x)
3년 초과 전 | 0
답변 있음
If Else simple calculation not working
% Try this mask = Vals.Values <= 50; Vals(mask).Values = Vals(mask).Values + 50; Vals(~mask).Values = Vals(~mask).Va...
If Else simple calculation not working
% Try this mask = Vals.Values <= 50; Vals(mask).Values = Vals(mask).Values + 50; Vals(~mask).Values = Vals(~mask).Va...
3년 초과 전 | 0
| 수락됨
답변 있음
How to make a function output a matrix
I think you need only one loop that accomulate the series. I am assuming x and y are sent to the function as vectors, then we cr...
How to make a function output a matrix
I think you need only one loop that accomulate the series. I am assuming x and y are sent to the function as vectors, then we cr...
3년 초과 전 | 0
| 수락됨
답변 있음
Sorting Column Variable to a Row
Assume your table ( without labels) is of size nx3; where the 1st col is your dates (in numbers), 2nd is your cat, and the 3rd i...
Sorting Column Variable to a Row
Assume your table ( without labels) is of size nx3; where the 1st col is your dates (in numbers), 2nd is your cat, and the 3rd i...
3년 초과 전 | 0
답변 있음
Sum every element in matrix per group
d = unique(b); c = [];for i=1:length(d) c=[c,sum(a(b==d(i)))]; end
Sum every element in matrix per group
d = unique(b); c = [];for i=1:length(d) c=[c,sum(a(b==d(i)))]; end
3년 초과 전 | 0
답변 있음
Creating NetCDF file with new variables
It depends on your data structure, ( NEMO data, projected coordinates, data gird). Anyway, here is a simple example where ur lon...
Creating NetCDF file with new variables
It depends on your data structure, ( NEMO data, projected coordinates, data gird). Anyway, here is a simple example where ur lon...
3년 초과 전 | 1
답변 있음
Compare two matrix in matlab
Here you can extract those element val that are in both data located at index1 and index2 [val,index1,index2] = in...
Compare two matrix in matlab
Here you can extract those element val that are in both data located at index1 and index2 [val,index1,index2] = in...
3년 초과 전 | 0
| 수락됨
답변 있음
Extracting all possible vectors from a big vector
check this <https://www.mathworks.com/matlabcentral/fileexchange/24185-partitions>
Extracting all possible vectors from a big vector
check this <https://www.mathworks.com/matlabcentral/fileexchange/24185-partitions>
3년 초과 전 | 0
답변 있음
How to set which part of the code to comment using a variable?
See this example clear clc a=2; b=3 eval(['c',num2str(a),'=',','A',num2str(a),'(',num2str(b),')']) function...
How to set which part of the code to comment using a variable?
See this example clear clc a=2; b=3 eval(['c',num2str(a),'=',','A',num2str(a),'(',num2str(b),')']) function...
3년 초과 전 | 0
답변 있음
Could someone please tell me How to plot dashline output in bar chart?
Check this <https://www.mathworks.com/matlabcentral/fileexchange/24021-hatch-fill-patterns-plus-color-invert here>
Could someone please tell me How to plot dashline output in bar chart?
Check this <https://www.mathworks.com/matlabcentral/fileexchange/24021-hatch-fill-patterns-plus-color-invert here>
3년 초과 전 | 0
| 수락됨
답변 있음
Is there a way to link equations/ expressions such that that the final form is simplified?
It is better to simplify by hand first, for examle let lambda^2 = l then (3N-l)/(N-l)=(2N+N-l)/(N-l)= 2N/(N-l) - 1. The ...
Is there a way to link equations/ expressions such that that the final form is simplified?
It is better to simplify by hand first, for examle let lambda^2 = l then (3N-l)/(N-l)=(2N+N-l)/(N-l)= 2N/(N-l) - 1. The ...
3년 초과 전 | 0
답변 있음
Is there a better way to solve this multidimensional array?
For the first averaging % temp_mean = nanmean(M,4); For the 2nd annual avg use % A=reshape(M,19,3,6,siz...
Is there a better way to solve this multidimensional array?
For the first averaging % temp_mean = nanmean(M,4); For the 2nd annual avg use % A=reshape(M,19,3,6,siz...
3년 초과 전 | 0
| 수락됨
답변 있음
How to keep equal distancing between markers while moving??
Since you are in a periodic space, scaling the angle will not preserve the distance, you should use addition ( translate the ang...
How to keep equal distancing between markers while moving??
Since you are in a periodic space, scaling the angle will not preserve the distance, you should use addition ( translate the ang...
3년 초과 전 | 0
| 수락됨
답변 있음
Using Explicit Finite Difference Method to Determine the Time at which Unsteady State Ends - 1D Heat transfer
Your dicretization much satisfy the stability condition since the explicit scheme is conditionally stable. Moreover, The error m...
Using Explicit Finite Difference Method to Determine the Time at which Unsteady State Ends - 1D Heat transfer
Your dicretization much satisfy the stability condition since the explicit scheme is conditionally stable. Moreover, The error m...
3년 초과 전 | 0