답변 있음
I am having trouble getting the Best fit line through the data points in these two codes can you please help me out where I am messing up the code?
Use polyval to evaluate the data points of fit curve. figure(1) %Analysis Stretch x = [.015 .018 .025 .027 .033 .04 .044 .049...

4년 초과 전 | 1

답변 있음
Illegal use of reserved keyword "else".
function q_P = ParticularSolution (K,M,f_0,t,w_R,roadflag) Q=[-K,-w_R*M,w_R*M,-K] ; if roadflag==1 s_1==-f_0./K s_2=...

4년 초과 전 | 0

답변 있음
How can I plot this data in a 3d graph?
Read about pcolor, surf.

4년 초과 전 | 0

답변 있음
Find maximum value for every four hours
Read about reshape. Reshape your data so that one dimension corresponds to four hours and then use max.

4년 초과 전 | 0

| 수락됨

답변 있음
How to plot a graph by extracting the variables from each .mat file?
matFiles = dir('*.mat') ; N = length(matFiles) ; figure hold on for i = 1:N load(matFiles(i).name) ; scatter(...

4년 초과 전 | 1

| 수락됨

답변 있음
How do I plot multiple curves on the graphs for different values of variable (plot effect of changing the variable)
You need to run a loop like shown below: clear % Parameters A=0.19038; Ea=69710; Hr=-23237; Dp=0.013; roecatbulk=2000; eps=...

4년 초과 전 | 1

| 수락됨

답변 있음
how to take average of each column of matrices
A = randi(9,[6 3 6]); iwant = mean(A,1)

4년 초과 전 | 0

답변 있음
how to find time corresponds to peak of plot?
If (t,x) is your time and respective data. [val,idx] = max(x) ; t_maxx = t(idx)

4년 초과 전 | 0

답변 있음
PLEASE SOMEBODY HELP ME!!
This is a simple homework. You have to work on you own. For a reference refer this: https://in.mathworks.com/matlabcentral/fil...

4년 초과 전 | 0

답변 있음
how to find the inner values between two integer value
t = [6 7] ; p = [30 180] ; % interpolation ti = t(1):0.05:t(2) ; pi = interp1(t,p,ti) ; % plot plot(t,p,'*r',ti,pi,'-b') ...

4년 초과 전 | 0

| 수락됨

답변 있음
How to locate number from a matrix
If idx is the indices of the locations in second column...to get the respective first column just use: iwant = list2(idx,1)

4년 초과 전 | 0

| 수락됨

답변 있음
Imagine a vector of g = (5 6 3 7 5 4 4 9 8 5 7 8 9 9 5 4 6 8 8 7 6 7 7 7 8 8). And am asked to find the number of data greater than 5. How will I do this. Part b. How will
Read about logicals Read about indexing Read about >, <. >=, <= i.e. operators Read about pie

4년 초과 전 | 0

답변 있음
intersection points between two curves
You can use this file exchange to get intersection points: https://in.mathworks.com/matlabcentral/answers/621553-finding-the-int...

4년 초과 전 | 0

답변 있음
To find Group delay : Error using diff Difference order N must be a positive integer scalar.
Replace the line: gd = diff (ph,(2*pi*f0)); with gd = diff([ph (2*pi*f0)]);

4년 초과 전 | 0

| 수락됨

답변 있음
Adding Drunk effect to images of a dataset
Read about ImgeAugmentationDatastore. https://in.mathworks.com/help/deeplearning/ref/augmentedimagedatastore.html

4년 초과 전 | 0

답변 있음
How can i work with a set of column vector that has 365 rows. I want to find the mean between the 172 and 265 data only. Not all the mean.
You extract your required data using indexing. iwant = A(172:265,:) ; % extract array from 172 to 265 all the columns

4년 초과 전 | 0

| 수락됨

답변 있음
Extract Tables from within a cell
load('Tables.mat'); T = cellfun(@table2array,Tables,'UniformOutput',false) ; iwant = cell2mat(T') ;

4년 초과 전 | 0

답변 있음
How can I find the index of a specific element in an array
R = 5000; T = [0 8 39.3 103 236.5 511.7 1026.1 1906.9 3148.7 4293 4011.9 2628.4 1037.4 203.7 28.6 9.4 4.2 1.4 1....

4년 초과 전 | 0

답변 있음
How do I have different colours for each plot even having a different option in the popupmenu
x = (1:10)' ; A = rand(10,3) ; figure plot(x,A(:,1),'r',x,A(:,2),'b',x,A(:,3),'g') figure plot(x,A) figure hold on plo...

4년 초과 전 | 0

답변 있음
Detecting Contour of bubble
I = imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/814649/image.jpeg') ; % Remove boundary/ crop I = ...

4년 초과 전 | 0

답변 있음
how to change the orientation of an extrapolated image?
Let (X,Y) be your original grid data coordinates. lon0 = min(X(:)) ; lon1 = max(X(:)) ; lat0 = min(Y(:)) ; lat1 = max(Y(:)) ...

4년 초과 전 | 0

| 수락됨

답변 있음
How to convert the complex number as a 2D vector to train a neural network
To get real and imaginary part of the complex number, use real and imag. For other part use reshape.

4년 초과 전 | 0

답변 있음
finding number of centroids of a binary image
REad about regionprops. You can also try kmeans. Read about it.

4년 초과 전 | 1

답변 있음
Is there any way that indexing(subscript) 0 can be permitted. As these should be positive integer or logicals.
Note that a logical is 0 / 1 idx = logical(0)

4년 초과 전 | 2

| 수락됨

답변 있음
Geotif image appears darker
Use geotiffread / readgeoraster and the plot the data. Read about pcolor to plot.

4년 초과 전 | 0

답변 있음
ODE45/ODE15 inquiry about nonlinear spring
You may refer the following links to understand what to do. https://in.mathworks.com/matlabcentral/fileexchange/33168-springpe...

4년 초과 전 | 0

답변 있음
how to remove the NaN values from a dataset?
Read about isnan, A = [1 2 NaN 2 NaN rand] ; idx = isnan(A) ; A(idx) = [] % remove NaNs If you try to remove NaN's from...

4년 초과 전 | 1

| 수락됨

답변 있음
I need to repeat a sequence 33 times
Read about repmat. A = [1 2 3] ; B = repmat(A,1,3)

4년 초과 전 | 0

답변 있음
How to muliply non equal vectors with slicing?
A = 1:12; B = 1:4; A = reshape(A,4,[])' ; iwant = A.*B

4년 초과 전 | 0

더 보기