Community Profile

photo

MJFcoNaN


Last seen: 4 días ago Active since 2022

Programming Languages:
Python, MATLAB, Shell, Fortran
Spoken Languages:
English, Mandarin
Professional Interests:
Earth, Ocean, and Atmospheric Sciences

Statistics

All
  • 3 Month Streak
  • Knowledgeable Level 3
  • First Submission
  • First Answer

View badges

Content Feed

View by

Answered
Create variables inside the field of netcdf
Hello, "Europe" will be a group name in netcdf: GID = netcdf.defGrp(fid,'Europe'); lat_ID = netcdf.defVar(GID,'lat','doubl...

21 días ago | 0

| accepted

Answered
Error using im2frame
Hello, getframe is the suitable fucntion there: frame = getframe(gcf);

29 días ago | 1

| accepted

Answered
Deleting non identical values of 2 vectors?
Hello, The function of ismember may help you a = [5 6 1 8 4 7 3]; b = [4 5 6 2]; [lia,locb]=ismember(a,b); a(~lia)=NaN

alrededor de 1 mes ago | 0

| accepted

Answered
How can I read variables (lat lon and chl-a)in nc files with groups?
Hello, If possible, I will suggest you choose the "level 3 mapped data" which is much more convenient to deal with in matlab, b...

alrededor de 1 mes ago | 1

| accepted

Answered
How to fix the figure plot always being above on the screen?
Hello, You may set the figure property of WindowStyle to 'modal' : f=figure; f.WindowStyle='modal'; PS: 'docked' is another ...

alrededor de 1 mes ago | 0

Answered
pyrunsfile doesn't work when python script includes "import"
Hello, As I know, there were some python packages that some versions of matlab can't load if you installed them in virtual envi...

alrededor de 1 mes ago | 0

Answered
finding the index of NaN
You may use "isnan" A = [10 30 NaN 30] isnan(A) PS: There is a tip from help document "NaN values are not equal to each othe...

alrededor de 1 mes ago | 1

Answered
Creating a Timetable from a large excel data set
Hello, What type is the AbsTime? Does this one work? t=table2timetable(m137);

alrededor de 1 mes ago | 0

Answered
Connection error Matlab Download and Installation
Hello, It could not be a regular connection problem by firewall or proxy since you can download some parts. I will suggest you...

alrededor de 1 mes ago | 0

Answered
Find the nearest point of intersections of circles
Hello, You may need a different method than intersection. For example create a distance function under your own criterion. This...

alrededor de 1 mes ago | 0

| accepted

Answered
How to plot an ocean depth profile colormap for a angled coast?
Hello, The 2D or 3D interpolation may help. The method of reading lon and lat suggests your ROMS's grid in a form of "ndgrid",...

alrededor de 2 meses ago | 0

Answered
Is there any other function faster than sum(A,2) to get the sum of all rows?
In general, the native functions are optimized sufficiently. In certain cases, there may be some better way but in other parts ...

alrededor de 2 meses ago | 0

Answered
Error while finding peak value and location
Hello, You should sort the "x" variable ("vv" in your code) before calling findpeaks load 'vv.mat' load 'cc.mat' for m = 1:n...

alrededor de 2 meses ago | 1

| accepted

Answered
How do you determine if a point is to the left or right of a curve?
Hello, Is "to the right" meaning that a red point is in the polygon of blue track? The function of inpolygon may help: [in, on...

alrededor de 2 meses ago | 0

| accepted

Answered
Import part of dataset in a HDF5 file, by 'member' and/or 'logical array'
Hello, The "start, count, stride" is suitable for slicing a huge matix. For example this will only read a "vector" from a 2D m...

alrededor de 2 meses ago | 0

Answered
why is it not plotting?? blank graph
Why do you comment the lines of calculate y1 and y2? % Ecuaciones Diferenciales Ordinarias dy/dx=f(x,y) a resolver ------------...

alrededor de 2 meses ago | 0

| accepted

Answered
How to delete rows from matrix
Hello, This may help: SP_U(ismember(SP_U, SP_d,'rows'),:)=[];

alrededor de 2 meses ago | 0

| accepted

Answered
How can I append table to csv file?
Hello, dlmwrite cannot deal with table, but take numetric matrix or cell, such as [1 2 3] or {1,2,3}. You may take the values ...

2 meses ago | 0

Answered
Can MATLAB be installed on Apple MacBook Pro 16 (Apple M1 pro met)?
Yes, R2020b update3 and later is working on Rosetta 2 translation including Simulink and almost all toolbox. The latest version ...

2 meses ago | 0

Answered
max value of N arrays
You can concatenate all the vectors and use function of max by the given dimension. For example x=[1,3,6,9].'; y=[2,4,5,8].'; ...

3 meses ago | 0

Answered
How to merge two .mat files?
If they share the same variable name (for example 'data'), you can load them into different structure and merge. s1=load('file1...

3 meses ago | 0

| accepted

Answered
How do you select a particular geographic area for NetCDF files?
Both the variables of 'LAT' and 'LON' are 2-dim, but you treated them as 1-dim. Hence you get a very large number of count([8512...

3 meses ago | 0

Answered
convert vector of character to number
It depends on how you translate a word, for example: % s in this form is not a cell, but a character array s=['A' 'A' 'A' 'B' ...

3 meses ago | 0

Answered
Reshape Nx1 struct with field of Mx1 elements to N*Mx1 vector
This is an example: bar=rand(100,1) A=struct; A.bar=bar; % copy A.bar to all 1000 elements A(2:1000,1)=A(1) % table is a g...

3 meses ago | 0

Answered
Plot diagramm, i have overlapping axes.
The TiledChartLayout object may not be an input of 2nd axes in your code. You can try to change ax2=axes(t); to yyaxis left...

3 meses ago | 0

Answered
How can I extract rows using column values?
% random matrix A=randi(50,10) % needed lines index ind=ismember(A(:,1), [0:9, 49, 55, 11, 32, 13, 29, 30, 20, 33, 43, 24]); ...

3 meses ago | 1

Answered
批量合并.csv为一个.xlsx文件
函数本身并未限制文件数量。 建议你检查一下输出的文件,例如是否超过给定格式的行数限制(xls最多约6万行,xlsx最多约100万行)

3 meses ago | 0

| accepted

Answered
Copy & paste from Help Center to MATLAB (Mac version)?
Sometimes, Command + C will copy text with its format such as font, color and hyperlink. Therefore, some apps may not recognize ...

3 meses ago | 0

Answered
How to know the value on the coordinates that i circled at MATLAB Function? Like (0,Y)=3.57
Interpolation on x=0 and y=0 (or any number you need); You may change the method from linear (default) to someone else. x=0:0.1...

3 meses ago | 0

Answered
HELP how to esc by the command system ?
You can add "&" at the end of command to run it in backgroud. system('mkdir aaa &')

4 meses ago | 0

Load more