Beantwortet
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...

fast 4 Jahre vor | 0

Beantwortet
limits of latitude - longitude
Read about interp2.

fast 4 Jahre vor | 0

Beantwortet
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 ...

fast 4 Jahre vor | 1

| akzeptiert

Beantwortet
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

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
Finding area of a graph
Read about the function area

fast 4 Jahre vor | 0

Beantwortet
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...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
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...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
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...

fast 4 Jahre vor | 0

Beantwortet
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

fast 4 Jahre vor | 2

Beantwortet
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 ...

fast 4 Jahre vor | 0

Beantwortet
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...

fast 4 Jahre vor | 0

Beantwortet
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...

fast 4 Jahre vor | 0

Beantwortet
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...

fast 4 Jahre vor | 0

Beantwortet
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...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
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

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
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...

fast 4 Jahre vor | 2

| akzeptiert

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

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
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...

fast 4 Jahre vor | 0

Beantwortet
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)

fast 4 Jahre vor | 1

| akzeptiert

Beantwortet
Color of surf function
mymap = [1 0 0];

fast 4 Jahre vor | 0

Beantwortet
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)

fast 4 Jahre vor | 1

Beantwortet
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...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
power series approximation of the function sin (x)
Hint: Read about syms and taylor

fast 4 Jahre vor | 0

Beantwortet
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^...

fast 4 Jahre vor | 0

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

fast 4 Jahre vor | 0

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

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
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...

fast 4 Jahre vor | 0

Beantwortet
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 = @...

fast 4 Jahre vor | 1

Beantwortet
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...

fast 4 Jahre vor | 0

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

fast 4 Jahre vor | 0

Mehr laden