![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/3676978_1648995004862.jpeg)
MJFcoNaN
2022년부터 활동
Followers: 0 Following: 0
learning and learning
Programming Languages:
Python, MATLAB, Shell, Fortran
Spoken Languages:
English, Chinese
Professional Interests:
Earth, Ocean, and Atmospheric Sciences
Python, MATLAB, Shell, Fortran
Spoken Languages:
English, Chinese
Professional Interests:
Earth, Ocean, and Atmospheric Sciences
Feeds
답변 있음
Cannot read NC file dimensions values and regrid them
Hello, "ncread" can only get a variable not a dimention. There is only a length of any "Dimention", such as lat=234, but no va...
Cannot read NC file dimensions values and regrid them
Hello, "ncread" can only get a variable not a dimention. There is only a length of any "Dimention", such as lat=234, but no va...
6개월 전 | 1
| 수락됨
답변 있음
How to create a custom colormap ("seismic" from python)
Hello, The easiest way may be creating manually in "colormap editor" and then you can save it. Right-click the colorbar and se...
How to create a custom colormap ("seismic" from python)
Hello, The easiest way may be creating manually in "colormap editor" and then you can save it. Right-click the colorbar and se...
1년 초과 전 | 1
답변 있음
How to make non iterative code faster than the iterative when using line by line backslash inverse ?
Hello, The example may not show that iterative one is faster, because they are both too simple and fast. I will suggest you tr...
How to make non iterative code faster than the iterative when using line by line backslash inverse ?
Hello, The example may not show that iterative one is faster, because they are both too simple and fast. I will suggest you tr...
1년 초과 전 | 1
답변 있음
I can't comment my code with Chinese in matlab2022b
你好, 强烈建议你避免中文字符。 就我所知,Matlab对中文字符的支持并不完善(不知道是不是Windows等操作系统层面的问题),经常出现代码中所有中文字符变成乱码、问号等不可逆损坏的情况。
I can't comment my code with Chinese in matlab2022b
你好, 强烈建议你避免中文字符。 就我所知,Matlab对中文字符的支持并不完善(不知道是不是Windows等操作系统层面的问题),经常出现代码中所有中文字符变成乱码、问号等不可逆损坏的情况。
1년 초과 전 | 0
답변 있음
How to check if the input it´s a string?
Hello, you may need the 's' option to avoid evaluating text: b1= input('Press number 1 or 2: ','s');
How to check if the input it´s a string?
Hello, you may need the 's' option to avoid evaluating text: b1= input('Press number 1 or 2: ','s');
1년 초과 전 | 1
| 수락됨
답변 있음
How to get scale and coordinates from quiver function?
Hello, The vector field is instantaneous, therefore, you have to provide the increment of time for getting a new proximate loca...
How to get scale and coordinates from quiver function?
Hello, The vector field is instantaneous, therefore, you have to provide the increment of time for getting a new proximate loca...
1년 초과 전 | 1
답변 있음
How can I change the variable viewer font?
Hello, You can set fonts separately in: Preference--font
How can I change the variable viewer font?
Hello, You can set fonts separately in: Preference--font
1년 초과 전 | 0
| 수락됨
답변 있음
Matlab kills itself when my matrix is bigger than 7.5 GB
Hello, It is often the RAM that limits variable size and parallel may not help. You may try to allow more RAM by matlab: Prefer...
Matlab kills itself when my matrix is bigger than 7.5 GB
Hello, It is often the RAM that limits variable size and parallel may not help. You may try to allow more RAM by matlab: Prefer...
1년 초과 전 | 0
답변 있음
Two contour plots on the same figure with two different colormaps?
Hello, As you mentioned, adding a new axes is a normal suggestion to introduce a new colormap, because an axes can only have on...
Two contour plots on the same figure with two different colormaps?
Hello, As you mentioned, adding a new axes is a normal suggestion to introduce a new colormap, because an axes can only have on...
1년 초과 전 | 0
답변 있음
How can I run python script file programmed in anaconda virtual environment in MATLAB?
Hello, Matlab does not support python in virtual environment as well as in standard environment. There may be some basic and im...
How can I run python script file programmed in anaconda virtual environment in MATLAB?
Hello, Matlab does not support python in virtual environment as well as in standard environment. There may be some basic and im...
1년 초과 전 | 0
| 수락됨
답변 있음
/bin/bash: command not found error
hello, I have answered a similar question recently. This may be helpful: https://ww2.mathworks.cn/matlabcentral/answers/187962...
/bin/bash: command not found error
hello, I have answered a similar question recently. This may be helpful: https://ww2.mathworks.cn/matlabcentral/answers/187962...
1년 초과 전 | 0
답변 있음
How to use a command for the terminal which isn't a standard one?
Hello, 'system' starts a new shell process which may not inherit your familiar environment. I suggest you check the PATH in ma...
How to use a command for the terminal which isn't a standard one?
Hello, 'system' starts a new shell process which may not inherit your familiar environment. I suggest you check the PATH in ma...
1년 초과 전 | 1
| 수락됨
답변 있음
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...
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...
대략 2년 전 | 0
| 수락됨
답변 있음
Error using im2frame
Hello, getframe is the suitable fucntion there: frame = getframe(gcf);
Error using im2frame
Hello, getframe is the suitable fucntion there: frame = getframe(gcf);
대략 2년 전 | 1
| 수락됨
답변 있음
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
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
대략 2년 전 | 0
| 수락됨
답변 있음
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...
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...
대략 2년 전 | 1
| 수락됨
답변 있음
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 ...
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 ...
대략 2년 전 | 0
답변 있음
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...
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...
대략 2년 전 | 0
답변 있음
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...
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...
대략 2년 전 | 1
답변 있음
Creating a Timetable from a large excel data set
Hello, What type is the AbsTime? Does this one work? t=table2timetable(m137);
Creating a Timetable from a large excel data set
Hello, What type is the AbsTime? Does this one work? t=table2timetable(m137);
대략 2년 전 | 0
답변 있음
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...
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...
대략 2년 전 | 0
답변 있음
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...
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...
대략 2년 전 | 1
| 수락됨
답변 있음
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",...
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",...
대략 2년 전 | 0
답변 있음
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 ...
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 ...
대략 2년 전 | 0
답변 있음
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...
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...
대략 2년 전 | 1
| 수락됨
답변 있음
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...
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...
대략 2년 전 | 0
| 수락됨
답변 있음
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...
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...
대략 2년 전 | 0
답변 있음
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 ------------...
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 ------------...
대략 2년 전 | 0
| 수락됨
답변 있음
How to delete rows from matrix
Hello, This may help: SP_U(ismember(SP_U, SP_d,'rows'),:)=[];
How to delete rows from matrix
Hello, This may help: SP_U(ismember(SP_U, SP_d,'rows'),:)=[];
대략 2년 전 | 0
| 수락됨
답변 있음
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 ...
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년 전 | 0