Toder
Followers: 0 Following: 0
Feeds
답변 있음
Matlab on Linux: Failed to load module "canberra-gtk-module"
This is a known bug but shouldn't affect your ability to use Matlab. See https://www.mathworks.com/support/bugreports/details/19...
Matlab on Linux: Failed to load module "canberra-gtk-module"
This is a known bug but shouldn't affect your ability to use Matlab. See https://www.mathworks.com/support/bugreports/details/19...
4년 초과 전 | 1
| 수락됨
답변 있음
Averaging Every 5 Elements in a Matrix for Each Column with Nans
For x=[1 2 3 NaN 4], like your short example, you can do this to ignore NaNs in the mean: mean(x(~isnan(x)))
Averaging Every 5 Elements in a Matrix for Each Column with Nans
For x=[1 2 3 NaN 4], like your short example, you can do this to ignore NaNs in the mean: mean(x(~isnan(x)))
4년 초과 전 | 0
| 수락됨
답변 있음
Create a vector with for loop with mathematical operations
To fix your current code, you need to use indices in the for loop. w=[5 4 3 2] for i = w a3(6-i)=[1/(i+i)] b3(6-i) =...
Create a vector with for loop with mathematical operations
To fix your current code, you need to use indices in the for loop. w=[5 4 3 2] for i = w a3(6-i)=[1/(i+i)] b3(6-i) =...
4년 초과 전 | 1
답변 있음
Array indices must be positive integers or logical values MATLAB error
z0(t) is causing the error. t is a vector of decimals, and you cannot use a decimal as an index. Indices must be positive intege...
Array indices must be positive integers or logical values MATLAB error
z0(t) is causing the error. t is a vector of decimals, and you cannot use a decimal as an index. Indices must be positive intege...
4년 초과 전 | 0
답변 있음
Question on how to position points on a line
Assuming del is a column vector of the same size as t and is the desired change in x, try this xy1 = [141.64 399.53]...
Question on how to position points on a line
Assuming del is a column vector of the same size as t and is the desired change in x, try this xy1 = [141.64 399.53]...
4년 초과 전 | 0
| 수락됨
답변 있음
dbstop doesn't stop if the line at which is supposed to stop is something like `'else'
The if condition is true, so Matlab executes disp('true'); then jumps to end. Lines 4 and 5 are never executed because only one ...
dbstop doesn't stop if the line at which is supposed to stop is something like `'else'
The if condition is true, so Matlab executes disp('true'); then jumps to end. Lines 4 and 5 are never executed because only one ...
4년 초과 전 | 0
| 수락됨
답변 있음
Replace missing time steps in dataset
If data is the vector of your measurements at times x, you can try Y = NaN(size(t)); Y(ismember(t,x)) = data;
Replace missing time steps in dataset
If data is the vector of your measurements at times x, you can try Y = NaN(size(t)); Y(ismember(t,x)) = data;
4년 초과 전 | 0
답변 있음
Errors Within an If Statement
For if elsif else conditionals, Matlab executes the statements in the first block who's logical expression true, then it jumps t...
Errors Within an If Statement
For if elsif else conditionals, Matlab executes the statements in the first block who's logical expression true, then it jumps t...
4년 초과 전 | 0
| 수락됨
답변 있음
"Index exceeds the number of array elements (1)."
The way you define your struct in the first few lines results in Air being a 1x1 struct with two fields (temp and press), each o...
"Index exceeds the number of array elements (1)."
The way you define your struct in the first few lines results in Air being a 1x1 struct with two fields (temp and press), each o...
4년 초과 전 | 1
| 수락됨
답변 있음
I obtained different figure after using fsurf and surf
It appears you may have a typo in your second definition of bb. Your first call to jacobiSN in this line currently reads as jac...
I obtained different figure after using fsurf and surf
It appears you may have a typo in your second definition of bb. Your first call to jacobiSN in this line currently reads as jac...
4년 초과 전 | 0
| 수락됨
답변 있음
Pie chart label overlapping
Following the documentation for pie chart labels at https://www.mathworks.com/help/matlab/creating_plots/customize-pie-chart-lab...
Pie chart label overlapping
Following the documentation for pie chart labels at https://www.mathworks.com/help/matlab/creating_plots/customize-pie-chart-lab...
4년 초과 전 | 2
질문
Function Argument Validation, Compare to Irrational Number or Expression
Is there a way to use MATLAB's built-in validation functions to compare an argument to an expression or funciton output? I want...
4년 초과 전 | 답변 수: 1 | 0
1
답변질문
Exit function early and return output
I have a rather long function with a single output. In a special case, the output can be calculated without executing the majori...
4년 초과 전 | 답변 수: 1 | 0