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 ...

bijna 2 jaar 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].'; ...

bijna 2 jaar 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...

bijna 2 jaar 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...

bijna 2 jaar 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' ...

bijna 2 jaar 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...

bijna 2 jaar 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...

bijna 2 jaar 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]); ...

bijna 2 jaar ago | 1

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

bijna 2 jaar 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 ...

bijna 2 jaar 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...

bijna 2 jaar 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 &')

bijna 2 jaar ago | 0

Answered
Error using plot, Data must be a single input
For 3D data, you should use plot3 x211 = linspace(-5,5,100); x221 = linspace(-5,5,100); f22 = 100*(x221-x211.^2).^2 + (1-x211...

bijna 2 jaar ago | 2

| accepted

Answered
Unzip and rename excel file
the function of unzip allows setting an output folder, for example: unzip([web file(1:end-1)], file(1:end-5))

bijna 2 jaar ago | 1

| accepted

Answered
Write calculated values to an excel file in column 2 and the file name in column 1
table is a good choice. % your code % ... files = dir( fullfile(indir, '*.csv')); tbl = struct2table(files); tbl.Amplit...

bijna 2 jaar ago | 0

| accepted

Answered
Adding multiple Netcdf4 files into a single file
I suggest nco tools (a collection of utilities to manipulate and analyze netCDF files, but not a matlab toolbox) to do this kind...

ongeveer 2 jaar ago | 0

Answered
I want to change the color of the markers in scatter plot which are below the function line
You can try this: clc clear close all d = 4; N = 1000; X = linspace(0,d,N); func = @(X) 2*X.*cos(X.^2).*exp(sin(X.^2)) + ...

ongeveer 2 jaar ago | 0

Answered
resize a matrix and missed data "zero"
I answered a very similar question recently, what a coincidence: similar question and answer array_1=[1 2 5; 80 50 60]; arra...

ongeveer 2 jaar ago | 0

Answered
subplot of plots generated from a for loop
If you need a subplot in for loop, maybe this is an example: X= my_data nCols=3 for iCol=1:nCols:size(X,2) ax=subplot(2,...

ongeveer 2 jaar ago | 0

| accepted

Answered
how to open netcdf file with specific location?
Please post the result of ncinfo(ncfile_uv, 'u')

ongeveer 2 jaar ago | 0

Answered
How can I convert a datetime array from english to spanish format?
The "Command Window Preferences" controls default locale and date settings. However, if you only need output some strings, try ...

ongeveer 2 jaar ago | 0

Answered
How to plot fewer arrows and increase their size on a quiver plot that is merged over another field?
You may try this code: id = 8 ; % plot every 4th value ScaleFactor = 10; Upos0 = Upos; Vpos0 = Vpos; Upos = NaN(size(Up...

ongeveer 2 jaar ago | 0

Answered
How to apply operation (< or >=) on cell array?
A little modified code may work: ind_less = cellfun(@(x)any(x<150, 'all'), DATA_A); A_OUTPUT = NaN(length(DATA_A), 1); A_OUTP...

ongeveer 2 jaar ago | 0

Answered
Not enough input arguments
"exp" is a function, not a number. I guess this is what you need: y = (3*cos(x)-sin(x)).*exp(-0.2*x);

ongeveer 2 jaar ago | 0

| accepted

Answered
Error defining a discontinous function: "Output argument "y2" (and possibly others) not assigned a value in the execution with "x2" function
Your function does not consider a vector as input. Use for loop, such as: a=NaN(length(t)); for ii = 1:length(t) a(ii)=x...

ongeveer 2 jaar ago | 0

| accepted

Answered
Quiver scales U and V for different X and Y
You can make "scale" 0 or "off" quiver(lct1,lct2,dir1,dir2,'off') Official Help on quiver: "To disable automatic scaling, spec...

ongeveer 2 jaar ago | 0

Answered
Combining two for loops into a nested loop
Please check whether this step is correct: montherrors(:,(i*j)) = mdl.Residuals(:,1) Maybe you need one of these: %(1) month...

ongeveer 2 jaar ago | 0

| accepted

Answered
Combining arrays with different dimensions
I guess the last "92" is a typo. x1 = array_1(1, :); x2 = array_2(1, :); y1 = array_1(2, :); y2 = array_2(2, :); x = uni...

ongeveer 2 jaar ago | 0

Answered
A very, very strange phenomenon!After drawing, adjust the position of the group figures. When you move the subplot in figure, the coordinates of the subplot change!!!
I think it is some "auto" feastures' influence. You can try setting axes properties such as XTick and XLim to override auto mo...

ongeveer 2 jaar ago | 0

Submitted


roms_uv2va
: convert (u_eastwards, v_northwards ) to (velocity , direction_angle)

ongeveer 2 jaar ago | 1 download |

Load more