Answered
I have eigen value matrix and i want to plot real part of eigen value vs imaginary for every eigen value , so how can i do so?
plot(real(w),imag(w)) Likewise you can follow it to other parameters.

8 years ago | 0

Answered
Extract values within interquartile range in array
v=1:100; new_array = v(v >=25 & v<=75) %values between 25 to 75 new_array1 = v(v<25 | v>75) % values less than 2...

8 years ago | 1

Answered
How can I call a function that has an input variable?
variable = input('Input variable: '); The above should be outside the function and then this can be passed as an argument...

8 years ago | 0

| accepted

Answered
Creating a new matrix with rows from a past matrix.
idx=find(all(A(:,3) < 0)) A(idx,:)=[] %removes row A(:,idx)=[] %removes column

8 years ago | 0

Answered
How to display results as two columns?
A = [200 500 700 1000 1500]; for units = A if units <= 500 cost = 0.02 * units; elseif units <= 1000 co...

8 years ago | 0

Answered
Please Help Me! i want to plot a equation dx/dt = y-5; dy/dt = -x+5; x(0)=0,y(0)=0. What type of code solver should i use.
syms x(t) y(t) %EDITED ANSWER ode1=diff(x) == y-5; ode2=diff(y)== -x+5; [x,y]=dsolve(ode1,ode2,x(0)==0,y(0)==0) ...

8 years ago | 1

| accepted

Answered
How to make this loop fast.
Remove all clear commands from the loop and see

8 years ago | 1

Answered
小数点表示をしたい(ただし、後0は付加しない)
isfloat(4.5036e+15) if it returns 1 , then its a decimal value

8 years ago | 1

Answered
what does the x(10:15) mean?
x(10:15) it means elements from 10 to 15 are picked from vector x see example: >> x=1:15 x = Col...

8 years ago | 0

Answered
How to convert a string data time to a number
dt = datestr(now,'mmmm dd, yyyy HH:MM:SS.FFF AM') %an example

8 years ago | 0

Answered
How do i find the product of all the numbers in my matrix
a=1:20; prod(a)

8 years ago | 0

Answered
How do I output the same single parameter for a set of different files?
see <https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=3&cad=rja&uact=8&ved=2ahUKEwjdh4fKx7DeAhWNTX0KHeczAiUQFjACegQ...

8 years ago | 0

Answered
Plot data from cell in inverse order
might help : <https://in.mathworks.com/matlabcentral/answers/378391-efficient-way-to-plot-data-from-a-cell-array#answer_30123...

8 years ago | 0

Answered
Even Numbers in a matrix a
a=1:20 b=a(rem(a,2)==0)

8 years ago | 1

Answered
Create scale arrow on quiver
set(qp,'AutoScale','on', 'AutoScaleFactor', 2)

8 years ago | 0

Answered
How Do i find the 20th number in a matrix?
matrix(20)

8 years ago | 1

| accepted

Answered
how to create csv file with dlmwrite for diffrent vector sizing?
instead of [] you can use 0 , you can omit it later on else vec=[vec,0];

8 years ago | 0

Answered
reshaping vector with uneven elements and zero padding
Try: Data_description = string([Data_name, Data_side]); in your code

8 years ago | 0

Answered
How to create pairwise comparison matrix from input matrix?
Result= yourmatrix'./yourmatrix

8 years ago | 0

Answered
How to make a smooth graph?
P_load = [0,8000,10000,11000,20000,25000,25000,21000,30000,20000,12000,45000, 12000,45000,23300,12000,15000,17000,20000,16000...

8 years ago | 1

| accepted

Answered
Dot indexing is not supported for variables of this type when accessing a cell column
s = string(Data{:}.DataTimeStamp)

8 years ago | 0

Answered
Pairwise matrix creation in matlab
clear all a=[1 2 3]; Result=(a'./a)

8 years ago | 0

| accepted

Answered
Could anyone help me how to overcome the error in the following code:
marker_dist = 0.2 x = [0 5 10] y = [2 4 1] dist_from_start = cumsum( [0, sqrt((x(2:end)-x(1:end-1)).^2 + (y(...

8 years ago | 0

Answered
How to fill in zeros with values from another vector?
a = [1 2 0 0 3 0 5]; %EDITED b = [4 3 2]; a(a==0)=b

8 years ago | 0

| accepted

Answered
how to shift in timetable?
See <https://www.mathworks.com/help/matlab/ref/lag.html *lag()*>

8 years ago | 0

Answered
Sawtooth fourier series matlab
T = 5; % period t = linspace(-2*T, 2*T, 1000); % time vector A = 1; f = zeros(1,numel(k));% Plot the composi...

8 years ago | 0

Answered
How can I determining polynomial function from image intensity values to implement Lagrange interpolation?
<https://in.mathworks.com/matlabcentral/answers/345344-lagrange-interpolation-in-2d#answer_271163>

8 years ago | 0

Answered
4th order differential equation
syms y(x) w EI L c1=y(0)==0 y1 = diff(y,x) c2=y1(0)==0 c3=y(L)==0 c4=y1(L)==0 y(x)=dsolve(diff(y,x,...

8 years ago | 0

| accepted

Answered
How to load 300 matrices as a single .mat file?
fid = fopen('test.txt'); f= textscan(fid,'%s','delimiter','\n','CollectOutput',1); fclose(fid); save test.mat f ...

8 years ago | 0

Answered
How to use Simulink Test Manager?
Follow the instructions mentioned: <https://www.mathworks.com/help/sltest/ug/introduction-to-the-test-manager.html>

8 years ago | 0

Load more