답변 있음
What to do after getting predicted Yfit from regression learner?
You have the TrainedModel with you.....if you feel the accuracy is satisfactory, validate it. If the validation (for unseen data...

거의 4년 전 | 0

답변 있음
limits of latitude - longitude
Read about interp2.

거의 4년 전 | 0

답변 있음
Issue plotting stem function
X=@(t) 3*sin(100*pi*t); t=linspace(0,0.05); % n=linspace(0,0.035); %%This line is trying to match the number of elements in ...

거의 4년 전 | 1

| 수락됨

답변 있음
Transforming 100x4 Char Array to 1x400 Char Array
You have varities of functions to achieve this. Try: str = str(find(~isspace(str))) ; % where str is your string

거의 4년 전 | 0

| 수락됨

답변 있음
Finding area of a graph
Read about the function area

거의 4년 전 | 0

답변 있음
retrieve data specific date
You need to load the nc data into MATLAB. For this you need to use ncdisp and ncread. You read the dates and convert them into...

거의 4년 전 | 0

| 수락됨

답변 있음
How to plot such a complete figure by matlab. The hemisphere is $x^2+y62+z^2=4$ and the cylinder is $x^2+y^2=1$ with bases $z=0$ and $z=\sqrt{3}$
I would go by parametric equations. %% Sphere R = 2 ; th = linspace(0,2*pi) ; phi = linspace(0,pi/2) ; [T,P] = meshgrid(th...

거의 4년 전 | 0

| 수락됨

답변 있음
how to solve this...when it iterates first 16 char it is not finishing the line it is jumping to next line i need to make a loop that carrying 16 char each iteration?
fid = fopen('shortext.txt','rt'); while ~feof(fid) R1 = fgetl(fid); if length(R1) >= 16 plaintext = R1(1:16...

거의 4년 전 | 0

답변 있음
Find all unique values and replace it with new values
v = [0.23; 0.1; 0.33; 0.23 ; 0.33; 0.6; 0.6; 0.4]; [c,ia,newV] = unique(v,'stable') ; newV

거의 4년 전 | 2

답변 있음
count the number of ones in each row
A = [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

거의 4년 전 | 0

답변 있음
Hi... I have attached a code with error(Index exceeds matrix dimensions) in line 19. Anyone help me to resolve this error
Your S, E, I, Q, R are constants and you are trying to extract second lement from them. This is the error. May be htis is what y...

거의 4년 전 | 0

답변 있음
How to do summation columnwise and create the structure array of summed values.
You can achieve it by using reshape and sum. First, reshape your matrix into a 3D matrix and then apply/ do what you want. R...

거의 4년 전 | 0

답변 있음
Sum and subtract a lot of images
You will get that error, when you try to save more number of elements than the arrays is initialized for. A = zeros(3) ; A(1...

거의 4년 전 | 0

답변 있음
How to fix Index position 3 exceeds array bounds (must not exceed 1)
This error is simple.. you are trying to extract more number of elements then present. I suspect, you have a black and white ima...

거의 4년 전 | 0

| 수락됨

답변 있음
I am having trouble indexing
A = rand(2,4); B = rand(2,4); [C,idx] = sort(A,'descend'); D=B; for i = 1:size(idx,2) D(:,i) = B(idx(:,i),i) ; end

거의 4년 전 | 0

| 수락됨

답변 있음
How to convert GPS data (lon,lat) data into X, Y (meters)
First, it appears that the values for latitude-longitude in the table have had some sort of scaling or coding applied and will n...

거의 4년 전 | 2

| 수락됨

답변 있음
How to write code for this?
x = rand(100,1) ; y = sqrt(mean(x.^2)-mean(x)^2)

거의 4년 전 | 0

| 수락됨

답변 있음
Getting row id of data
Let T be your table. And you want to seperate Astoria from T into another table T1. idx = strcmp(T.PickupZone,'Astoria') ; T1...

거의 4년 전 | 0

답변 있음
How can I execute the level enclosed between the two required functions in the plot?
x = linspace(-1,2) ; f1 = @(x) (x.^2-2*x+2) ; f2 = @(x) -x.^2+6 ; y1 = f1(x) ; y2 = f2(x) ; plot(x,y1,x,y2)

거의 4년 전 | 1

| 수락됨

답변 있음
Color of surf function
mymap = [1 0 0];

거의 4년 전 | 0

답변 있음
Growing eye matrix as per the size of eye
REad about diag I = diag(repelem(1,1,9))+diag(repelem(1,1,6),-3)+diag(repelem(1,1,3),-6)

거의 4년 전 | 1

답변 있음
how to define the range with variable
You need to use elelement by element (.*) multiplication as well . h_H2 = 0; h_O2 = 0; h_H2O = -241827; s_H2 = 130.59; s_O2...

거의 4년 전 | 0

| 수락됨

답변 있음
power series approximation of the function sin (x)
Hint: Read about syms and taylor

거의 4년 전 | 0

답변 있음
Output Answer by solve
syms X1 X2 X3 X4 eq1 = X1^2+X2^2==1949.947 ; eq2 = (X1*X3)+(X2*X4)==-28.338; eq3 = (X3*X1)+(X4*X2)==-28.338; eq4 = X3^2==X4^...

거의 4년 전 | 0

답변 있음
Delete all repeatation number
REad about unique. a = [1 2 2 3 2 4 5 6 7 8 6] iwant = unique(a)

거의 4년 전 | 0

답변 있음
How to calculate the max value corresponding to every 75 value on a column?
A = rand(1,150000) ; iwant = max(reshape(A,75,[]))' ;

거의 4년 전 | 0

| 수락됨

답변 있음
I have NETCDF files of three hourly soil moisture data of .25 by .25 degrees, I want to convert this data to monthly data of .5*.5 degree.
Read about the function interp2 for changing the spatial resolution. Read about retime to change the temporal resolution. I am...

거의 4년 전 | 0

답변 있음
How I multiply matrices in a cell?
% Make dummy data for demo C = cell(5,19) ; for i = 1:5 for j = 1:19 C{i,j} = rand(2) ; end end M = @...

거의 4년 전 | 1

답변 있음
Selecting 2 selected images from dataset for further work ?
Where you have the images? In a single folder? If so: Imgs = dir('*.JPG') ; % you are in the folder of images N = length(Img...

거의 4년 전 | 0

답변 있음
how to perform curve graph
Read about Bezier Curves. Youmay get the fileexchange here: https://in.mathworks.com/matlabcentral/fileexchange/30759-bezier-c...

거의 4년 전 | 0

더 보기