Frage


Getting all pixel values along this line
I want to check how the pixel values along this line have been changing through the different time intervals. This image is show...

mehr als 9 Jahre vor | 1 Antwort | 1

1

Antwort

Frage


Is this the correct way to use hist and ranksum..?? Result looks okie but just want to make sure that i am not doing anything wrong in this.
for i = 1:size(an_r,3); ax1(i)= subaxis(3,6,i,'SpacingVert',0.025,'SpacingHoriz',0.02,'Padding', 0, 'Margin', 0...

mehr als 9 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


Use m_quiver to plot the values which are numbers and not nans
%% Mean of sea ice drift over 36 winters (This code works perfectly fine) mean_wint_u = nanmean(t_u,3); %t_u is 361*361*36 ...

mehr als 9 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


How to make the subplots look larger and use the space judiciously.
figure(1); clf; for i = 1 : 11; subplot(4,6,i) m_proj('Stereographic','lat',90,'long',300,'radius',35,...

mehr als 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to fix this boxplot.. My data has so many values which are zero, i want to get rid of them in my analysis!
<</matlabcentral/answers/uploaded_files/52635/boxplot.png>> for k =1:size(wint2_r,3) wn_r = squeeze(wint2_r(:,:,...

mehr als 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


For loop confusion!
ind1 = 1:6; for t2=1:size(mm_r,3); if t2 <= 6 wt_r = mm_r(1:361,1:361,ind1); wint2_r(:,:,t2) =...

mehr als 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to make a square Histogram plot with the same range of values over x axis
<</matlabcentral/answers/uploaded_files/51451/tt.png>> figure(1); clf; for i = 1:size(wint2_r,3) tmpwi...

mehr als 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to make a histogram for matrix array
ind1 = 1:6; for t2=1:length(mm_r)/6; if t2 <= 6 wt_r = mm_r(1:361,1:361,ind1); wint2_r(:,:,t2)...

mehr als 9 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


What would be the scale of the vector using mquiver
The values of vector mean_wint_u and mean_wint_u are cm/s * *I have plotted every fourth vector and scaled it 4 so what would b...

mehr als 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


To define the axes for just one subplot colorabar
*For subplot(1,7,5)- I want to define the range of colorabar [0 6]* subplot(1,7,4) m_proj('Stereographic','lat',90,'lo...

mehr als 9 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


How to define the colorbar for subplots
I have 10 subplots in a figure i want to define one colorbar for the whole figure, However the contour range is different for al...

mehr als 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


mean for matrix array
I have a matrix *t_u(361,361,36)* i want to *calculate the mean for 6 files* in a row.. the resulting matrix should look like *...

mehr als 9 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Problem with the mean of index
% tr(i,j,ni) is 361*361*432 t_r = zeros(361,361,35); ind=10:16; for t=1:(ni/12)-1; if t<=34 * *mea...

mehr als 9 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Problem with the looping
tr(i,j,ni) is 361*361*432 ind=10:16; % Winter average over month Oct to following year's April for k=1:(ni/12)-1 ...

mehr als 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


What is the difference between these two scripts; and which one is more appropriate to use
*% the dataset is *u = squeeze(tdata(1,:,:)./10); v = squeeze(tdata(2,:,:)./10);** %1st ...

mehr als 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Assignment has more non-singleton rhs dimensions than non-singleton subscripts
% open binary file for % Polar Pathfinder mean monthly 25 km EASE-Grid Sea Ice Motion Vectors, Version folderpath = 'C...

mehr als 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How can i define sid_allyears = zeros(361,361,432); in my script
% open binary file for % Polar Pathfinder mean monthly 25 km EASE-Grid Sea Ice Motion Vectors, Version folderpath ...

mehr als 9 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


I have a folder named 'means' which has further sobfolders numbered from '1979-2015', each subfolder has 12 files, i want to process each of that file. But how to call this folder , subfolder and further all the files.
% this is how i am going to process each of these files fid1 = fopen(filename, 'r', 'ieee-le'); data =...

mehr als 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Error using fread.. If i change the yearindex to 1 it can read but then the size of sic becomes 334*448*35, and gives error the number of rows are not equal.
clear all;clc; % latitudes and longitudes and area elements for each grid cell fid = fopen('psn25lats_v3.dat'); l...

mehr als 9 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


I want to plot the values of each month and the respective year in one line, so basically 34 lines in a plot to show how the values are changing for 34 years
clear all;clc; data= load('north_x_y_lat_lon'); datacoord = reshape(data, 361,361,4); lat = squeeze(datacoord(:,:...

mehr als 9 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Error using vertcat Dimensions of matrices being concatenated are not consistent.
for y=1979:2012, % open binary file for % Polar Pathfinder Daily 25 km EASE-Grid Sea Ice Motion Vectors, Version ...

mehr als 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


I have a directory called MATLAB in which i have all my .m codes and couple of separate folders, each folder further has subfolders, How can i call the subfolders?
for y=1979:2012; % open binary file for % Polar Pathfinder Daily 25 km EASE-Grid Sea Ice Motion Vectors, Version 2 ...

fast 10 Jahre vor | 1 Antwort | 0

1

Antwort

Gelöst


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

fast 10 Jahre vor

Gelöst


Circle area using pi
Given a circle's radius, compute the circle's area. Use the built-in mathematical constant pi.

fast 10 Jahre vor

Gelöst


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

fast 10 Jahre vor

Gelöst


Say something funny
Say something funny, or not. Your solution will be (fully automatically and objectively) scored based on how clever or funny ...

fast 10 Jahre vor

Gelöst


Is my wife right?
Regardless of input, output the string 'yes'.

fast 10 Jahre vor

Gelöst


Add two numbers
Given a and b, return the sum a+b in c.

fast 10 Jahre vor

Gelöst


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

fast 10 Jahre vor

Gelöst


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

fast 10 Jahre vor

Mehr laden