답변 있음
Create a 95% confidence circle
Yes you can use... the change would be a == b i.e. horizontal and vertical radii should be same.

4년 초과 전 | 1

| 수락됨

답변 있음
How to show difference equation on the command line?
fprintf('y(n) = 0.25\n') fprintf('y(n-2) = 2*x(n)+0.5*x(n-2)\n')

4년 초과 전 | 0

답변 있음
How to read the variables from a file
https://in.mathworks.com/matlabcentral/answers/251731-how-to-take-text-files-and-turn-the-data-into-variables

4년 초과 전 | 0

답변 있음
How do I enter f(x) = sin((π/2) x) + sin((2/5)πx) over the interval [0,40]
x = linspace(0,40,100) ; f = sin(pi/2*x)+sin(2/5*pi*x) ; plot(x,f)

4년 초과 전 | 0

답변 있음
How to combine 2 tables with different variables into 1 table?
Convert both the tables into arrays using table2array. And then you need to use below: T1 = [1 2 3 4 5; 10 20 30 40 50]' ; T2 ...

4년 초과 전 | 0

| 수락됨

답변 있음
How to plot a graph?
You can striaght away use plot on 50*6 matrix. plot(A) ; % A is 50*6 matrix legend

4년 초과 전 | 0

답변 있음
Finding 8 points on an ellipse
Find the major, minor axes of ellipse i.e. (a,b). Once these are known, the paraetric equation of ellipse are: Take phi = 0:p...

4년 초과 전 | 1

답변 있음
i have an error using plot function with syms engine
You need to substitue the value of a into K1 using the function subs, convers the output into double and then plot. y = double...

4년 초과 전 | 0

답변 있음
finding indices of values in a range
To achieve the first task, you can use inqualities i.e. >, <. = etc. To achieve the second task use ismember.

4년 초과 전 | 0

답변 있음
matrix1:matrix2 ?
It means : a=[1 2 3; 4 5 6] ; b=[1 2; 3 4 ; 5 6] ; a(1):b(1) i.e. it is taking a(1,1) and b(1,1) and trying to make a linsp...

4년 초과 전 | 0

| 수락됨

답변 있음
How to convert logarithmic to linear
Take exp of the result. The inverse of log is exp,

4년 초과 전 | 0

답변 있음
how to evaluate equation at different values?
mu=linspace(2.4,4,1000); x = zeros(size(mu)) ; x(1)=.5; for i=1:10 x(i+1)=mu(i)*x(i)*(1-x(i)); end plot(mu,x)

4년 초과 전 | 0

답변 있음
Save a loop iteration into a ZEROS array
Note that Array is not all zeros. It has complex numbers, so when you are printing you feel like they are zeros. Also you need n...

4년 초과 전 | 0

답변 있음
How to get the file names that start with the same letter in the folder?
f = dir('T*.bin') ; N = length(f) ; for i = 1:N f(i).name end

4년 초과 전 | 1

| 수락됨

답변 있음
find ID's of repeated values in array
[c,ia] = ismember(t2,t1)

4년 초과 전 | 0

답변 있음
Create a function based on some criteria
if x <= 0 y = -1 ; elseif x > 0 && x <= 5 y = x^3 ; elseif x > 5 y = x^2 ; end

4년 초과 전 | 0

| 수락됨

답변 있음
How to save output of double loop?
A = zeros(n,m) ; for i=1:n for j=1:m A=myfunction(...); % assuming output of the function is 1x1 end e...

4년 초과 전 | 1

답변 있음
How can I detect constant signal patch from whole signal by using matlab script ?
x = 0:0.1:10; y = gaussmf(x,[2 5]); % Introduce constant value [val,idx] = max(y) ; idx0 = idx:idx+10 ; y(idx0) = val ; ...

4년 초과 전 | 0

답변 있음
How to plot 2D Linear Inequality?
[x1,x2]=meshgrid(0:.1:10,0:.1:10); cond1=x1-x2<=-2; cond2=-0.3*x1-x2<=-8; cost=0.4*x1.^2-5*x1+x2.^2-6*x2+50; figure (1)...

4년 초과 전 | 0

| 수락됨

답변 있음
Function readtable: how to insert the value of a variable double in the directory
f = dir('C:\Users\hp\OneDrive\Project\Results\'); f(3) f(4)

4년 초과 전 | 0

답변 있음
How to plot velocity profile?
T = readtable('Atq16.xlsx') ; data = table2array(T) ; plot(data(:,2:end),data(:,1),'-or')

4년 초과 전 | 0

| 수락됨

답변 있음
Reading .rec files ( mutiple .rec files)
For .edf files you can use this file exchange function: https://in.mathworks.com/matlabcentral/fileexchange/31900-edfread For ...

4년 초과 전 | 1

답변 있음
How to find uaci by fixing one image and changing the other?
A = imread('whatever_is_A') ; B_images = dir('*.png') ; % you are in the folder of images and give extension N = length(B_...

4년 초과 전 | 1

| 수락됨

답변 있음
I want to cut a vector into even number of terms in a loop
save_T = 35; if mod(save_T,2)==0 % is even continue else save_T=save_T-1;

4년 초과 전 | 0

| 수락됨

답변 있음
Need help in plotting contour of speed, torque and eff
scatter(eff,speed,[],torque,'filled') You cannot plot contour with the given data. You have 1D data. You need to have 2D data...

4년 초과 전 | 0

답변 있음
How to solve many equations at once? (Not a system but just multiple separate equations)
You get the solution for x in terms of Pm first. This will be a symolic xpression. In that you can substiture your Pm values to ...

4년 초과 전 | 0

| 수락됨

답변 있음
Histogram fit with curved fitting
You are expecting like this? v = randn(1000,1) ; h = histogram(v) ; i = h.BinEdges ; x = mean([i(1:end-1)' i(2:end)'],...

4년 초과 전 | 0

| 수락됨

답변 있음
Putting array in function to graph
x = 0 : 0.1 : 2; y = 0.7*(x.^2).*(1+0.2*(x.^2)).^-3.5 ; figure(1) plot(x,y) grid

4년 초과 전 | 0

답변 있음
Extracting rows in row-wise manner. How to do this?
Question sounds very silly. You can use a lloop. A = rand(100,4) ; B = zeros(100,4) ; for i = 1:100 thisrow = A(i,:) ...

4년 초과 전 | 0

답변 있음
How to generate multiple .stl files in a loop?
You are overwriitng the stl files. Always you are using the same name to .stl file. You need to give different filename; check t...

4년 초과 전 | 0

| 수락됨

더 보기