답변 있음
partfrac() function returning same expression
It gives the same expression as the output because the denominator can not be decomposed with the default factor format i.e. 'ra...

2년 초과 전 | 1

답변 있음
Trying to extract the rows from a matrix where the values from the first two columns match the values from another matrix
%Sample data for example y1 = magic(5) y2 = y1; y2(randi(25,1,5)) = 0 %Comparison idx = all(y1(:,1:2)==y2(:,1:2), 2) out =...

2년 초과 전 | 0

| 수락됨

답변 있음
Calculate double integrate of sin
You can simplify the expression obtained - syms theta rho n f = sin(rho)^(n + 2)*sin(theta)^(n + 1); I1 = int(f,rho,0,pi);...

2년 초과 전 | 0

답변 있음
Upsampling a matrix with zero elements
%input x = [1 2 3 4; 5 6 7 8] %Upsample factor n=2; %preallocate the output matrix y = zeros(n*size(x)); %assign valu...

2년 초과 전 | 1

답변 있음
Execution of script rainflow as a function is not supported, then gives the path of the rainflow.m file.
Follow instructions from this documentation page to add the directory you have mentioned to the search path of MATLAB and save i...

2년 초과 전 | 0

답변 있음
How to split array into sub arrays?
a = [1 3 5 8 11 12 15 17 18 19 20 21 24 29 31 32 33 34 35 36 38 39 69].'; %bin the data into groups of 10 k = findgroups(flo...

2년 초과 전 | 0

| 수락됨

답변 있음
Execution of script Faddeeva_w as a function is not supported:
You have defined the file "Faddeeva_w " as a script. But you are trying to call it as a function i.e. by providing an input (as...

2년 초과 전 | 0

답변 있음
incorrect reading of a txt file
I am not sure what the expected output is supposed to be, but you can use readtable - in = readtable('test.txt','DecimalSepara...

2년 초과 전 | 0

| 수락됨

답변 있음
Problems using plot3
As I have mentioned earlier in my answer to one of your questions, do not use the deprecated xlsread function. Utilize the ro...

2년 초과 전 | 0

| 수락됨

답변 있음
Find common rows between two matrices with different number of columns
A = [1 2 3; 4 5 6; 7 8 9]; B = [1 3 20 2; 1 2 3 55; 7 8 9 10; 88 2 1 5]; %Indices of rows in B idx = 1:size(B,1); for k=...

2년 초과 전 | 1

| 수락됨

답변 있음
Index in position 1 exceeds array bounds. Index must not exceed 1.
You have not defined "t" and many other variables as input to the function "Reduced_Degree_model". You have defined "tspan" and...

2년 초과 전 | 0

답변 있음
From what MATLAB version can max() return linear indices?
From the official documentation, R2019a was the version when this syntax was first introduced - https://in.mathworks.com/help/re...

2년 초과 전 | 1

| 수락됨

답변 있음
How can I get three plots from a struct array which is split by three categories?
Use a for loop to go through each unique category and utilize logical indexing to obtain and plot the corresponding data. Refer...

2년 초과 전 | 1

| 수락됨

답변 있음
What is this error and how do I fix it?
Most likely the function "calculate_residuals" is not in the current directory. Type "cd" in the command window to get the curr...

2년 초과 전 | 0

| 수락됨

답변 있음
Islocalmin/max on an Animated Plot and Indices Problem
The syntax of islocalmax (and islocalmin) is different than that of findpeaks. Check the documentation for the appropriate synt...

2년 초과 전 | 2

답변 있음
Bei der Installation kann das Passwort nicht eingegeben werden.
These might help you - https://in.mathworks.com/matlabcentral/answers/1456459-can-t-enter-text-when-installing-r2021a-on-ubunt...

2년 초과 전 | 2

| 수락됨

답변 있음
Roots of a 4th degree polynomial and plotting a graph
Define the polynomial as a Function Handle of the variable 'k' and use roots for different values of 'k'. Yes, you can plot t...

2년 초과 전 | 0

답변 있음
Can I customize the display format?
"Is there any way to customize the display format in the command window beyond the exisisting options for format?" No. Thoug...

2년 초과 전 | 0

| 수락됨

답변 있음
A question about list folder contents with dir
This notation is used in filesystems (and anywhere they are implemented/used) - . refers to the current directory/folder. .. ...

2년 초과 전 | 0

| 수락됨

답변 있음
Simplifying for-find loop functions to speed up processing
I assume r, c and v have the same number of rows - %Check which rows from the given range in mD have more than 3 values greate...

2년 초과 전 | 1

| 수락됨

답변 있음
Can someone helps me to solve the error in this code?
There are missing operators at many places in your code, e.g. - % vv vv ia = (10^-7)(exp(-(Eexc/R)((1/T...

2년 초과 전 | 0

답변 있음
Stop Matlab from reopening sessions
Yes, follow these steps - HOME -> Preferences -> Editor/Debugger -> Opening files in editor In that section, Untick the option ...

2년 초과 전 | 0

| 수락됨

답변 있음
Warning: Escaped character '\U' is not valid. See 'doc sprintf' for supported special characters. Warning: Error updating ConstantLine. Execution of script mean as a functi
Given the warning message - I suspect that you have a overloaded the mean() function by naming a user-defined script as mean. ...

2년 초과 전 | 1

답변 있음
How to turn off text highlighting/ variable usage counting in 2023a
You can turn off the highlights by pressing "Ctrl + Shift + H". But when you will do so, the message at bottom left will say - ...

2년 초과 전 | 0

답변 있음
Import XLSX in MATLAB using input() and xlsread()?
You should use the more robust readmatrix or readtable. There is no need for using input(). Directly specify the filename to th...

2년 초과 전 | 0

| 수락됨

답변 있음
Trying to plot the output of a function where h is a range over 10^-1 to 10^-18
We can take advantage of the vectorization here - AD = absolutediff(2.5) function AD = absolutediff(x0) %Function defi...

2년 초과 전 | 0

답변 있음
Calling a function in the command window
When you define a function inside a script, it is only accessible within the script. From this documentation page Local funct...

2년 초과 전 | 5

답변 있음
Extraction based on the array indices
Use logical indexing - Find Array Elements That Meet a Condition

2년 초과 전 | 0

| 수락됨

답변 있음
Different results by or(A,B) and xor(A,B) for matrices, why?
Why do you expect 2 different operators (and 2 different functions for that matter) to give the same result? From the respect...

2년 초과 전 | 0

| 수락됨

답변 있음
offset on y-axis
If you are using R2018b or a later version, utilize stackedplot.

2년 초과 전 | 0

더 보기