Réponse apportée
limits of latitude - longitude
Read about interp2.

presque 4 ans il y a | 0

Réponse apportée
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 ...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
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

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Finding area of a graph
Read about the function area

presque 4 ans il y a | 0

Réponse apportée
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...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 0

Réponse apportée
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

presque 4 ans il y a | 2

Réponse apportée
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 ...

presque 4 ans il y a | 0

Réponse apportée
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...

presque 4 ans il y a | 0

Réponse apportée
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...

presque 4 ans il y a | 0

Réponse apportée
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...

presque 4 ans il y a | 0

Réponse apportée
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...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 2

| A accepté

Réponse apportée
How to write code for this?
x = rand(100,1) ; y = sqrt(mean(x.^2)-mean(x)^2)

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 0

Réponse apportée
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)

presque 4 ans il y a | 1

| A accepté

Réponse apportée
Color of surf function
mymap = [1 0 0];

presque 4 ans il y a | 0

Réponse apportée
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)

presque 4 ans il y a | 1

Réponse apportée
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...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
power series approximation of the function sin (x)
Hint: Read about syms and taylor

presque 4 ans il y a | 0

Réponse apportée
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^...

presque 4 ans il y a | 0

Réponse apportée
Delete all repeatation number
REad about unique. a = [1 2 2 3 2 4 5 6 7 8 6] iwant = unique(a)

presque 4 ans il y a | 0

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

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 0

Réponse apportée
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 = @...

presque 4 ans il y a | 1

Réponse apportée
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...

presque 4 ans il y a | 0

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

presque 4 ans il y a | 0

Réponse apportée
How to plot colorbar in matlab?
pcolor(x,y,Z) colorbar

presque 4 ans il y a | 1

| A accepté

Charger plus