回答済み
Unable to use REFPROP material library
That version of refprop is no longer supported https://www.mathworks.com/matlabcentral/answers/1711870-i-am-trying-to-use-matla...

6ヶ月 前 | 0

回答済み
stop animations with pause()
Create a uicontrol radio button to act as a stop button. TheUIControl.Value = 0; for i=1:10 if TheUIControl.Value == 1 ...

6ヶ月 前 | 1

回答済み
Why do I get an error when I ran the integral?
f(x) = piecewise(x >= hU & x <= xl, (2 * x) / i^2, x > xl & x <= xh, (2 * x) / (pi * i^2) * acos(((x^2) - hU^2 + x0^2 - i^2)...

6ヶ月 前 | 0

回答済み
Hello. Im currently creating a code in Matlab and I am running into this error that I will attach in a screenshot. I am new to Matlab so I am having trouble fixing it.
y=conv(x,h,'full')*0.01; The length of a 'full' convolution is longer than than the individual inputs: it is (length(First) + l...

6ヶ月 前 | 0

回答済み
does matlab have a command similar to Excel's LINEST
The slope is the derivative, so derivative of 6/5*g*h --> 6/5*h which you could easily get using the symbolic toolbox.

6ヶ月 前 | 0

回答済み
Does this plot look right?
You have a source signal that consists of a single frequency. The theoretical outcome for the fourier transform is all zero ever...

6ヶ月 前 | 0

| 採用済み

回答済み
How can I write missing value ncwriteatt
You cannot set the _FillValue of a variable after the variable is created. https://www.mathworks.com/help/matlab/ref/nccreate.h...

6ヶ月 前 | 0

回答済み
How can I write NaN as missing_values ncwriteatt
You cannot set the _FillValue of a variable after the variable is created. https://www.mathworks.com/help/matlab/ref/nccreate.h...

6ヶ月 前 | 0

回答済み
separating columns in data files
You only have one column of data -- those are complex numbers. "Only positive" would restrict to just the very first point. Eve...

6ヶ月 前 | 0

回答済み
help with symbolic int result
syms theta psi No Lo real assumeAlso(theta>0 & theta<2*pi) N1 = (sym(1)/sym(2))*(No/sym(1))*sign(sin(sym(1)*theta +...

6ヶ月 前 | 0

| 採用済み

回答済み
Even a simple code I wrote in matlab does not appear in the command window section, only the name of the file appears for example >>untitled1 How can I solve this?
That is normal when code is stored in a file. When lines end in semi-colon, that is a request to not output the result of the l...

6ヶ月 前 | 1

回答済み
Mean of a cell array
mean(cat(3, TheCellArray{:}),3)

6ヶ月 前 | 2

| 採用済み

回答済み
How to solve 'out of memory' problem while solving coupled differential equation ?
You have what is probably a stiff system, but you are using ode45() for it instead of using a stiff solver such as ode15s() You...

6ヶ月 前 | 1

回答済み
How to create a contour plot from 3 vectors
numcontours = 5; [minx, maxx] = bounds(X); [miny, maxy] = bounds(Y); xv = linspace(minx, maxx); yv = linspace(miny, maxy);...

6ヶ月 前 | 0

| 採用済み

回答済み
How to create a contour plot from 3 vectors
numcontours = 5; %https://www.mathworks.com/matlabcentral/fileexchange/38858-contour-plot-for-scattered-data TRI = delaunay(X,...

6ヶ月 前 | 0

回答済み
different symbols with different colors in a same legend
There isn't any way to do that with legend() You might want to start with https://www.mathworks.com/matlabcentral/fileexchange/...

6ヶ月 前 | 0

回答済み
How do I change this system with function handles to linear equations to plot discretely?
u = @(n) double(n>=0); %converts symbolic u to array of n uu = @(n) 1*(n>=0); %unit step function x = @(n) u(n-2)-u(n-4); n=[...

6ヶ月 前 | 0

| 採用済み

回答済み
Solving non linear equations
syms J1 J2 J3 T1 T2 T3 T4 Jm = 5077.12; Js = 301.32; Je = 330.136; A2 = 449200; A4 = 519000; Fms = 0.305; ...

6ヶ月 前 | 0

回答済み
Interpolating by latitude and depth
interp2() expects the first two inputs to be either vectors or 2d arrays. If they are vectors then interp2() automatically expan...

6ヶ月 前 | 0

回答済み
Subtraction Should Show Zero But Shows Small Error
What is going on here is that MATLAB represents double precision numbers in IEEE 754 Double Precision format. That format involv...

6ヶ月 前 | 1

回答済み
how to calculate product of two 3D matrices (both 101 by 101 by 101 ) in matlab ?
u^2 is not defined for 3D matrices.

6ヶ月 前 | 0

回答済み
Third-order polynomial equation which complex roots
syms c k L eqn = c^3 ... - c^2*(2*k*exp(4*k*L) + 2*k*exp(2*k*L) + exp(4*k*L) - 6*k^2*exp(2*k*L) + 1) / (2*exp(2*k*L) * k *...

6ヶ月 前 | 0

回答済み
I am getting the error The file may be corrupt while trying to save a fig (7.5E7 data samples for 8 channels) using Matlab ver17b: The file may be corrupt
Possibly the generated fig file would be more than 2 gigabytes. If you were trying to savefig it... you might need to save() th...

6ヶ月 前 | 0

回答済み
How do I use fprintf to print to a text file?
filename = "AppropriateName.txt"; [fid, msg] = fopen(filename, "wt"); if fid < 0 error('failed to open file "%s" because ...

6ヶ月 前 | 0

回答済み
Variable precision point for fprintf command set by user input
fprintf( fprintf(' %%10.%df'), precision), Ab(i,:))

6ヶ月 前 | 1

回答済み
Trying to set up a matrix, getting error message
You have accidentally created a variable named fscanf

6ヶ月 前 | 0

回答済み
The fastest method to perform sum of function
The fastest way of adding the values depends upon the fine details of your hardware, and on the details of how the data is laid ...

6ヶ月 前 | 1

回答済み
How do I make greek letters appear as symbols and use them as variables?
You cannot do that. If you use the Symbolic Toolbox, and you are using LiveScript (or MATLAB Online, or MATLAB Answers), and yo...

6ヶ月 前 | 1

| 採用済み

回答済み
error: Array indices must be positive integers or logic
Due to floating point round-off, the result A+(B*x(i)) might not be exactly an integer. You should round() it.

6ヶ月 前 | 0

回答済み
How to fix the error in integration?
xmin = 0; xmax = 1; jb=zeros(tstep,xstep); X = linspace(xmin,xmax,xstep-1); The X values are going to be between 0 and 1...

6ヶ月 前 | 0

| 採用済み

さらに読み込む