Réponse apportée
How can I display the variables in .nc files?
Try giving the extension. F='Total_Chl.nc' ncdisp(F)

presque 3 ans il y a | 0

Réponse apportée
How to plot in 2D this equation?
x0 = linspace(-5,5,200); y0 = x0; n=10;a=0.1; w0=0.01;m=0; [x0,y0] = meshgrid(x0,y0) ; r=(sqrt(x0.^2 +y0.^2)); f = @(x0...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Multiple_independant variables on X-axis bottom
plot(1:3,rand(1,3)) xticks([1 2 3]) str = {sprintf('1\\newlineOne\\newlineOkati') sprintf('2\\newlineTwo\\newlineRendu') sprin...

presque 3 ans il y a | 0

Réponse apportée
Merging Date and time
T = readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/1361583/LI7500_eddypro_LP_2023_JFM_full_output_2023...

presque 3 ans il y a | 0

Réponse apportée
"griddata" results in much smaller values than original data
data=importdata('manila.dat'); lon=data(:,2); lat=data(:,3); elev=data(:,4); xr = 118.7:0.2:121; yr = 12.4:0.2:20.7; ...

presque 3 ans il y a | 1

Réponse apportée
Is there a way to append all arrays nested in a table without looping?
D = table2array(T.d)

presque 3 ans il y a | 0

Réponse apportée
How can i display this user defined matrix made with a loop
n=4;m=5; matrix = zeros(n, m); fun_choice = 1; for k = 1:n for h = 1:m if fun_choice == 1 matrix(...

presque 3 ans il y a | 0

Réponse apportée
how to draw a meshed geometry?
clc; clear all ; % Define the vertices of the triangle v1 = [0, 0]; v2 = [20, 0]; v3 = [30, -10]; v4 = [50, -10]; v5 = [50...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How can I have US map's boundary points as pairs of longitude and latitude?
You may download the shape file of your required country here: https://www.diva-gis.org/ Else you can also have a look on inbu...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How to skip warning
Try warning off... Any ways it is better not to load whole netcdf file at once.

presque 3 ans il y a | 0

Réponse apportée
How to insert different size matrices into each row of a zero matrix
M = zeros(4) ; for i = 1:4 M(i,1:i) = rand(1,i) ; end M

presque 3 ans il y a | 0

Réponse apportée
Express a matrix as product of elementary matrices
If you have a number, you can try to get its multiples or product of numbers using: x = 10; v = 2:x/2; c = v(mod(x,v)==0)

presque 3 ans il y a | 0

Réponse apportée
How to pick neighborhoods points of a center point in rectangle or square form that make a matrix of like 5*5, 7*7, 7*5 etc.
Read about rangesearch, knnsearch

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Processing Timeseries of Cylinder Pressure Data
REad about functions: readtable, datetime, logical inequalitties and plot

presque 3 ans il y a | 0

| A accepté

Réponse apportée
finding edge/ plot from image/ maze
You can use contour.

presque 3 ans il y a | 1

Réponse apportée
How to save matrixes resulted from a running loop for further use in MATLAB
Let mxn be your matrix size and you are running loop ntimes. In this case you can save the matrix in the loop using the below co...

presque 3 ans il y a | 0

Réponse apportée
how i can solve this problem? unrecognized function or variable to run my code
I think this is what you need. % Define the operating frequencies in Hz freqs = linspace(1e9, 6e9, 100); % 100 equally spaced ...

presque 3 ans il y a | 0

Réponse apportée
how to convert cell to mat
REad about real and imag R = real(htemp); C = imag(htemp) ;

presque 3 ans il y a | 0

Réponse apportée
2D array to 1D with rows appending after another row
A =[1 2 3 ; 4 5 6] ; iwant = reshape(A',1,[])

presque 3 ans il y a | 1

| A accepté

Réponse apportée
how to plot such figure in MATLAB?
Read about xticklabels

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Vector plots by Quiver in MATLAB
[X,Y,Z] = peaks(100) ; [u,v] = gradient(Z) ; w = sqrt(u.^2+v.^2) ; pcolor(X,Y,w) ; shading interp ; colormap(jet); hol...

presque 3 ans il y a | 1

Réponse apportée
How can I avoid using for loop in this functions
function y=Besselj_approx(n,z) i = n ; y=zeros(1,length(n)); y(1:end)=-z.^2/4+1; y(i>0) = 1./gamma(i(i>0)+1).*(z/2).^i(i>0);...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
How do I save a file in excel to matlab current folder?
T = readtable('myfile.xlsx') ; T

presque 3 ans il y a | 0

Réponse apportée
Given x= rcos(𝛼) ; y=rsin(α); write MATLAB program to plot a circle of unit radius (r=1).
This is a simple homework... You should do it your self. Read about: Linspace for making angle between 0 to 360 i.e. 0 to 2*pi ...

presque 3 ans il y a | 1

Réponse apportée
Plotting 3D by rotate 2D plot around y-axis
This might be useful. Checkout: https://in.mathworks.com/matlabcentral/communitycontests/contests/4/entries/4996

presque 3 ans il y a | 0

Réponse apportée
Averaging data between two integer and corresponding column of a matrix
A = [1 2 3 4 5 6; 1.234 1.11 1.3 2.31 2.3 2.4]' ; idx = fix(A(:,2))==2 ; mean(A(idx,1))

presque 3 ans il y a | 0

Réponse apportée
How to make a linear regression coefficient algorithm
x = 1:10 ; y = rand(1,10) ; [a,b] = linreg(x,y) ; % Check p = polyfit(x,y,1) ; [a b ; p(2) p(1)] function [alpha, b...

presque 3 ans il y a | 0

Réponse apportée
How to create a custom colormap ("seismic" from python)
Refer this: https://in.mathworks.com/matlabcentral/fileexchange/45208-colorbrewer-attractive-and-distinctive-colormaps https:/...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
what is the meaning of this error? how to stop this error?
You have copied this function named 'Forward_model' under a script/ code whose file name is also same as the function i.e. Forwa...

presque 3 ans il y a | 0

Réponse apportée
Keeping same colors for the same groups in different group scatter plot
P = rand(1000,2) ; x = P(:,1) ; y = P(:,2) ; idx = kmeans(P,4) ; figure h = gscatter(x,y,idx) ; % Get colors C = resha...

presque 3 ans il y a | 1

| A accepté

Charger plus