回答済み
how to fit exponential distribution function on data?
You do not have an exponential distribution. (1 minus an exponential) is not an exponential. On the other hand if you fit using...

2日 前 | 0

回答済み
Undefined variable, when variable is actually defined
You do not initialize thplot, so it is assigned a value only if for iStep=1:nStep executes at least one step. The for loop wou...

2日 前 | 0

| 採用済み

回答済み
Index 3D Array with 2D logical array
You can do things like mask1 = false(size(A)); mask2 = mask1; B3 = repmat(B, [1 1 3]); mask1(:,:,[1 2 3]) = B3; mask2(:,:,[...

2日 前 | 0

回答済み
how to read a really large lines of data(ascii file format) to a table
filename = 'YourFile.txt': [fid, msg] = fopen(filename); if fid < 0 error('Failed to open file "%s" because "%s"', filena...

2日 前 | 0

回答済み
Second order ODE with dsolve
ode = diff(y,t,2) == a.*d) + b.*y - diff(x2,t)./10 + x1; You are missing a ( . Also, dy is not defined. Perhaps d) is intended...

2日 前 | 0

| 採用済み

回答済み
Compiled version not working because of path
You need to modify your startup.m so that it does not add anything to the search path if isdeployed() is true.

2日 前 | 0

回答済み
Concerning 1D data interpolation and use of Julian date function.
Change load('In_Flight_Data.mat'); To Ds = load('In_Flight_Data.mat'); dataTot = Ds.dataTot; datethermica = ...

2日 前 | 0

回答済み
can someone solve this problem with dsolve?
What problem? That *is* the solution. Remember that many many integrals do not have a closed form solution.

2日 前 | 0

回答済み
Can I install Matlab for Linux on personal laptop (Windows 10) if its already installed there Matlab for Windows?
Yes. The license is associated with the host, not the operating system. In some cases you might need to use Linux persistent ...

2日 前 | 0

回答済み
Output an error message for executed command
You need try/catch around the execution of each statement that needs separate handling. If you are able to put the code for e...

2日 前 | 0

回答済み
stem fuction shows error everytime
The stem.m file that it lists in the error message: you need to rename it to something else. For example mystem.m

3日 前 | 0

回答済み
Can I install Matlab on a Surface Pro?
Yes, at least for the 5th generation onwards . However it is not recommended for the 4 gigabyte RAM model. At the moment I do...

3日 前 | 0

回答済み
warning while running optimization tool
We can predict that your objfun has a place where you use Variable(Parameter) where you should have Variable.*(Parameter) Tha...

3日 前 | 0

回答済み
Solving a matrix with multiple unknowns
LL_mat is a symetric non zero 10*10 matrix You have 10 equations in 8 variables. There will seldom be a solution.

3日 前 | 0

回答済み
Char array to cell array
cellstr(val) You might want str2double( cellstr(val) )

3日 前 | 0

回答済み
How do you evenly quantize an image to a certain number of bits?
Most of the time it is not possible to evenly quantize an image to a particular number of bits that is smaller than the original...

3日 前 | 1

回答済み
How to use SUM of Series in Matlab with .txt files?
num = 0; denom = 0; for n=1:N num = num + (v1(n) - v2(n)).^2; denom = denom + v1(n).^2; end PRD = sqrt(num ./ deno...

3日 前 | 0

回答済み
How can I resize an array without interpolating new values or mark the original ones?
| was wondering if there is a way to assign the vallues from the 75x265 matrix to the corresponding places in a 2160x2560 area w...

3日 前 | 1

回答済み
Quantile function isn't working
quantile is part of the Statistics and Machine Learning Toolbox. You probably do not have that installed on the second computer....

3日 前 | 0

回答済み
how to use crop using coordinate?
You need [h, w, numberOfColorChannels] = size(pic); not [w, h, numberOfColorChannels] = size(pic);

3日 前 | 0

| 採用済み

回答済み
How to solve this error presented when compiling .cpp files to mex?
const int *dim1 = mxGetDimensions(prhs[0]); mxGetDimensions does not return int* https://www.mathworks.com/help/matlab/api...

3日 前 | 1

回答済み
How can i make a 1 count as 11 if its best in blackjack
if score <= 11 && ismember(1, hand)

3日 前 | 0

| 採用済み

回答済み
How I can Solve an Advanced Cubic Equation
syms x a r eqn = x^3*a^2*(r-1)+x^2*a*(a-2*(r-1)) - x*(2*a+1)+1; sol = simplify(solve(eqn, x, 'maxdegree', 3)); The second and...

3日 前 | 0

回答済み
Modifying a message / dialog box in a function for different parts of the function and automatically closing?
https://www.mathworks.com/help/matlab/ref/uialert.html uialert() with 'modal', false should return a handle that you can manipu...

3日 前 | 0

| 採用済み

回答済み
Generating covariance from matrix
N = 20; y = rand(N,1); autocov = zeros(2, 2, N); for i = 1:N autocov(:, :, i) = cov(y(i:19),y(i+1:20)); end The result...

4日 前 | 0

| 採用済み

回答済み
How to generate all possible connection with graph theory function
https://www.mathworks.com/matlabcentral/answers/286462-how-to-find-all-possible-paths-from-one-node-to-another-node#answer_223...

4日 前 | 0

回答済み
Not enough input arguments
You cannot run that code by simply pressing the green Run button to run it. You must go down to the command line and invoke the ...

4日 前 | 0

回答済み
Using wcompress in Matlab
'haar' is not one of the valid compression methods for wcompress() https://www.mathworks.com/help/wavelet/ref/wcompress.html#f1...

4日 前 | 0

| 採用済み

回答済み
how to plot array ? i am using display instruction but i m not able to plot that data on xy plane
pf_n = 0.35:0.05:0.5; ac = (10000.0:10000.0:50000.0).'; C = (1.11 .* Bavg .* ac .* Kw .* pf_n); vs = vr./(1-s); L_W = Q./(...

4日 前 | 0

| 採用済み

回答済み
How to extract a coefficient from a specific symbolic variable?
Sometimes you can isolate() the variable in the equation, after which coeffs() the lhs() of the equation. Otherwise, lhs(eqn)-r...

4日 前 | 0

Load more