Réponse apportée
Changing input data sample from the same dataset
SInce you have not attached sample data, that is why I am generating some random dataset like yours. dataset=randi(5,23,6); dat...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
Onramp problem 14.1 and 14.2 plotting problems
Few points I need to mention: 1) You are calculating R1_av as a function of u, so if you use the below chunk of code, it will p...

presque 5 ans il y a | 2

Réponse apportée
How to change datenum to normal date format?
You can use this function from the matlab file exchange to read time from a ncetcf file in user specified format: https://in.ma...

presque 5 ans il y a | 0

Réponse apportée
For loop for hilb matrix
for i = 5:5:40 output_mat=hilb(i); % if you wish to store in cell array, uncomment the below line output_mat_cell{i...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
How to create nc file having lat, long, time, and 2D matrix
I hope this helps. [data]=xlsread('test.csv'); lat=data(2,2:end); lon=data(1,2:end); vardata=data(3:end,2:end); vardata(:,s...

plus de 6 ans il y a | 0

Réponse apportée
How to extract data from nc file by using shape file in MATLAB
You can use maskregion function, which mask out the data as per your shapefile. Example you can refer to for your convenience ...

plus de 6 ans il y a | 0

A soumis


maskregion
maskregion mask out the data in the nc file as per the shape file provided as the fourth argument

plus de 6 ans il y a | 2 téléchargements |

5.0 / 5
Thumbnail

A soumis


cropregion
cropregion crops the data in the nc file as per the bounding % box provided as the fourth argument

plus de 6 ans il y a | 1 téléchargement |

0.0 / 5
Thumbnail

A soumis


ncdispread( varargin )
Display and load all the variables of nc file

plus de 6 ans il y a | 2 téléchargements |

0.0 / 5

Réponse apportée
How to save the results of NetCDF as .nc file?
You can use nccreatewrite function to create a nc file having all the required variables. Example: lon=(65:0.5:95)'; lat=(3:0....

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
Saving data to .txt
Use dlmwrite to write into a ASCII file. A=magic(5) dlmwrite('sample.txt',A)

presque 7 ans il y a | 0

Réponse apportée
determining the value of an x corresponding to specifec y from the graph
Use polyfit to fit a linear line along all data points. It gives you a linear equation in terms of x and y. Just insert the valu...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
How to draw this 2 dimension figure (antenna feature) in Matlab?
I have just plotted your data simply. Check this out. figure('Units', 'Normalized', 'OuterPosition', [0, 0.04, 0.32, 0.96]);...

presque 7 ans il y a | 1

| A accepté

Réponse apportée
How to sum two probability density functions?
"sum two of these pdfs and also substract both"? Are you pretty sure to add the pdfs? My suggestion is to first add data and ...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
Converting a 2d vector to a 4d vector
Let's take a random data A A=randi(10,30,2); Use permute to change into 4D B=permute(A,[3,4,2,1]); Now, B(:,:,2,24) and...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
How do i filter out certain values in a cell matrix using conditions for strings ?
You can use _contains_ to find the required letter. _contains_ gives true if the part of search string contains in the main stri...

plus de 7 ans il y a | 2

| A accepté

Réponse apportée
The size of X must match the size of Z or the number of columns of Z.
There are few mistakes I want to highlight. You have used, contour(lat,lon,z............. It should be contour(lon...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
How do I efficiently find the mean and covariance of a cell containing matrices with different rows?
Use concatenate to mix up all cells into one matrix. cat(2,C{:}); %you can use this only if number of rows must be same in ...

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
How to present OBJ file (read as a mesh file) in a contour plot?
An example of creating a mesh is here, [X,Y] = meshgrid(-5:.2:5); R = sqrt(X.^2 + Y.^2); Z = sin(R)./R; mesh(X,Y,Z...

plus de 7 ans il y a | 1

Réponse apportée
Placing multiple rectangles layout
figure rectangle('Position',[1 1 2 4],'Curvature',0) rectangle('Position',[5 2 4 3],'Curvature',0) rectangle('Positio...

plus de 7 ans il y a | 1

Réponse apportée
Shapefile distorted on World Map
"I'm not sure if it is an issue with my shapefiles or with how I'm projecting". Its only because of projection, the continen...

plus de 7 ans il y a | 1

Réponse apportée
Remove Data Outside Range
AA=temp(temp(:,1)>=4 & temp(:,1)<=20,:); There is no need to remove. Directly store the numbers which you need. [xx,yy...

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
interp and interp3 give different size arrays
x0 = 1:100; y0 = 1:90; z0 = 1:100; data1=randi(10,90,100,100); %defining data over coarser resolution dimen...

plus de 7 ans il y a | 2

| A accepté

Réponse apportée
Animation using plot inside for loop
clc clear h=figure for n = 1:10 x_origin = 0; y_origin = 0; x_bob = 0.75*sin(n); y_bob = ...

plus de 7 ans il y a | 3

Réponse apportée
Creating a report file in txt format and merging it with created text file
Please refer to these problems. <https://in.mathworks.com/matlabcentral/answers/32377-appending-a-file> <https://in.mathwo...

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
Counting occurrences of each column in a matrix
Since you have not given any sample data, I am taking some random data. A=randi(50,50,50); A(A<=25)=0.4; A(A>25)=0.6;...

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
Reading very heavy .txt files and writing into .xlsx
A=randi(10,50,50); %a random matrix to store in excel file xlswrite('sample.xlsx',A,'sheet1','A1') You can use 'sheet1' ...

plus de 7 ans il y a | 1

A résolu


Test if a Number is a Palindrome without using any String Operations
*Description* Given an integer _X_, determine if it is a palindrome number. That is, _X_ is equal to the _X_ with the digits ...

plus de 7 ans il y a

A résolu


Project Euler: Problem 3, Largest prime factor
The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number being input, input might be ui...

plus de 7 ans il y a

Réponse apportée
Height and width of an image
Try this, A=imread('testing.jpg'); AA=rgb2gray(A); len=max(arrayfun(@(x) length(find(AA(:,x)~=255)),1:800)) bred=m...

plus de 7 ans il y a | 1

| A accepté

Charger plus