Answered
Array Aをソートしそれに合わせArray Bの順序を入れ換える
sort(A,'descend') sort(B,'descend')

7 years ago | 0

Answered
3D plot x-axis linspace array
n=1000; % n number of points x=linspace(min(x),max(x),n)

7 years ago | 0

Answered
ODE 23 PROBLEM??
Probably you may have a function file named F/ode23 please delete it or rename it , your code works perfectly fine. [t,y]=ode23...

7 years ago | 0

Answered
Plotting complex zero causes plot one zero
plot(real(z),imag(z)) % if only one argument is used matlab plots the variables against index in x axis read plot documentation

7 years ago | 1

| accepted

Answered
How can change the format of numbers in Matlab?
https://www.mathworks.com/help/matlab/ref/format.html sprintf('%.6f',pi)

7 years ago | 0

| accepted

Answered
how to access a variable from workspace to be used in a function?
Parameterize your function(link)- please read the link (pass those variables as function inputs) and call them.

7 years ago | 1

| accepted

Answered
char combining error: Matrix dimensions must agree. - SIMPLE SCRIPT
n='20000' u=['u2DSolution',n,'.dat']

7 years ago | 0

Answered
After solving and plotting a set of ODEs in 3d, how can I label a specific point (e.g (2,9,5))?
https://www.mathworks.com/help/matlab/ref/matlab.graphics.primitive.text-properties.html - if you want to add some text label pe...

7 years ago | 0

Answered
I want to cancel the negative sign out of IFFT
help abs

7 years ago | 0

| accepted

Answered
Take the array which is less than 3
A(A<3)

7 years ago | 1

| accepted

Answered
how to open simulink model of 2014 version in 2013a version which is installed on my laptop?
It’s better you upgrade to later version , some of the new features may not be available in the older version. See https://www....

7 years ago | 0

| accepted

Answered
Problem with Symbolic Functions
help str2func

7 years ago | 0

Answered
Indexing multidimensional matrices with elements is a vector
V=num2cell(V); matrix(V{:})

7 years ago | 0

| accepted

Answered
Indexing multidimensional matrices with elements is a vector
Maybe you are looking for ind2sub()

7 years ago | 0

Answered
Legend position is hiding other plots
Perhaps use the option northeastoutside (lookup legend doc) ,I am not sure of correct case sensitive in that option

7 years ago | 0

Answered
How do I exclude anomalies from a plot in a data set?
https://www.mathworks.com/help/matlab/ref/polyfit.html - polyfit takes only three inputs perhaps: fitB(~ismember(fitB,outliers...

7 years ago | 0

| accepted

Answered
How to plot one cell of size 1* 120 v/s other cell of size 1*120
plot(cell2mat(freq),cell2mat(tx_pow))

7 years ago | 0

| accepted

Answered
The following code is not working
You have file named pdepe please rename it or delete it becuase it‘s shadowing the inbuilt function pdepe()

7 years ago | 0

Answered
how to call a string into a function
help str2func help input

7 years ago | 0

| accepted

Answered
Get the index with the values in matlab plot
help ginput help getpts

7 years ago | 0

Answered
How to combine cell arrays into a uniform one
C = {{1:3},{3:5}} % an example data C = vertcat(C{:}) % combined cell array as one vertcat(C{:}) % concatenated again to conv...

7 years ago | 1

| accepted

Answered
NaNが生成されるのは、なぜでしょうか。
In the last sentence you assign A as NaN , delete that line.

7 years ago | 1

| accepted

Answered
Unable to find the maximum value in the following expression
solve(pOUT) % remove @(z) maybe you want to solve for z

7 years ago | 0

| accepted

Answered
Cant find the number of row for big size of matrix
No loops needed: [~,e3]=ismember(E3,tblBarray)

7 years ago | 0

Answered
How can I remove zeroes column from matrix without removing NaN column?
matrix(:,~any(matrix==0,1)) % or matrix(:,any(matrix==0,1))=[]

7 years ago | 0

| accepted

Answered
I get this error:"This system does not seem to be linear."
Just follow the same way showed in your previous question?

7 years ago | 1

Answered
Preventing input errors from quitting script using while loop
for k = 1:4 prompt2 = 'If CORRECT press 1, if INCORRECT press 0, then press return to advance: ' input(prompt2) end Gives er...

7 years ago | 0

Answered
How to count a specific value from column to column
a=[1 1 1 0 1 0 0 1 0 0 1 0 1 0 1]; Result=sum(reshape(a',5,[])) Gives: Result = 4 1 3

7 years ago | 0

| accepted

Load more