답변 있음
How to plot colorbar in matlab?
pcolor(x,y,Z) colorbar

거의 4년 전 | 1

| 수락됨

답변 있음
i want to find the solution of this second order differential equation
Read about syms syms y(x) eqn = diff(y,x,2) == y*2.869*(3.06693-(3.125*x^0.1)) ; s = dsolve(eqn)

거의 4년 전 | 1

답변 있음
How to save 3D data in text file?
m = 4; n = 3 ; p = 4 ; % dimensions for matrix A = rand(m,n,p); % make a dummy 3d matrix F = [repmat(' %0.4f',1,n),'\n']; ...

거의 4년 전 | 0

| 수락됨

답변 있음
Index in position 1 is invalid. Array indices must be positive integers or logical values. Error in simplexmethod (line 22) if(A(i,j)>=0)
%%Program Linear dengan Metode Simpleks %%Input dan Output Fungsi Tujuan (Minimum) Z=input('Input Z = ') %%Input Fungsi Kenda...

거의 4년 전 | 0

답변 있음
how can i see a points(x,y) value from a matlab plot
Read about datatip

거의 4년 전 | 0

답변 있음
How to add data labels for scatter3 plot
Read about text A=readmatrix('https://in.mathworks.com/matlabcentral/answers/uploaded_files/1017090/dataset.csv'); % Make unit...

거의 4년 전 | 0

| 수락됨

답변 있음
Double y axis plot when two data sets are not starting from the same time
A = rand(20,1); B = rand(11,1); idx = 1:length(A) ; plot(idx,A,'r') hold on plot(idx(10:end),B,'b') legend('A','B')

거의 4년 전 | 0

| 수락됨

답변 있음
Converting 15 minute data to daily data
Read about retime

거의 4년 전 | 0

| 수락됨

답변 있음
How to save multiple images using imwrite in matlab ?
image_folder ='E:\gambar_eror' filenames = dir (fullfile(image_folder,'*.jpeg')) total_images = numel(filenames); %training=...

거의 4년 전 | 0

| 수락됨

답변 있음
Image detect and convert white image
I = imread('https://in.mathworks.com/matlabcentral/answers/uploaded_files/1015935/test.png') ; I1 = rgb2gray(I) ; I2 = ~imbin...

거의 4년 전 | 0

답변 있음
Surface with three parameters that is a,b,c.
You need to provide the coordinates of each vertex and then use patch. You mat refer the following fileexchange: https://in.ma...

거의 4년 전 | 0

| 수락됨

답변 있음
I want vector surface plot
Prices = 1:30 ; Position = 1:30 ; Quantity = rand(1,30) ; Quantity = repmat(Quantity,30,1) ; surf(Prices,Position,Quantity...

거의 4년 전 | 0

답변 있음
How to remove the dublicated cells and empty cells
Let A be your cell array. A = A(~cellfun('isempty',A)) ; % A has no more empty cells

거의 4년 전 | 0

| 수락됨

답변 있음
Creating legend from fittype function
Instead of this line: hL1=plot(myfit, x_alpha, SF_alpha) ; use: xi = linspace(min(x_alpha),max(x_alpha)) ; hL1=plot(xi,myfit...

거의 4년 전 | 0

답변 있음
'Find' command to find index of lat and long from an array
You should not use find. As lat, lon are floating point numbers using == will not work. You need to define a small tolerance val...

거의 4년 전 | 0

| 수락됨

답변 있음
How to extract rows given multiple ranges
If you have the indices of rows idx, you can just use iwant = A(idx,:) ; % where A is your matrix and idx are the row indices ...

거의 4년 전 | 1

| 수락됨

답변 있음
How to find similar rows in two dataset?
Read about ismember. Load bot the files into MATLAB using readtable and then use ismember.

거의 4년 전 | 0

답변 있음
How to make the matrix first column name (character), second column content (number)
For this the best suitable is table varname = {'H1e' ; 'H2e' ;'H3e';'H4e';'H5e'} ; val = [12; 0.58; 5; 7;3.98] ; T = table(va...

거의 4년 전 | 0

| 수락됨

답변 있음
For cycle over a struct array
s = struct2cell(hs) ; N = length(s) ; for i = 1:N pcolor(XP,Yp,s{i}) drawnow end

거의 4년 전 | 1

| 수락됨

답변 있음
don't display some part of a graph
idx = Ic > 26 ; %get indices of Ic which are greater than 26 depth(idx) = NaN ; % make those respective value nan plot(Ic,dep...

거의 4년 전 | 1

| 수락됨

답변 있음
Get separate values from a mat file
load Solution.mat ; c = struct2cell(conf_solution); iwant = cell2mat(squeeze(c(2,:,:)));

거의 4년 전 | 0

답변 있음
1/0.8x^2+0.5x+2
x = linspace(-1,1); p = 1./(0.8*x.^2+0.5*x+2) ; % element by element operation plot(x,p)

거의 4년 전 | 0

답변 있음
Index in position 2 exceeds array bounds (must not exceed 1).
This is a simple error. You are trying to extract more number of elements then present in the array. % Example A = rand(1,5)...

거의 4년 전 | 0

| 수락됨

답변 있음
smoothing a graph using matlab
Read about smooth, polyfit

거의 4년 전 | 0

답변 있음
how to export of a sub aera of an array to xyz?
xx = A(:) ; yy = B(:) ; zz = C(:) ; P = [xx yy zz] ; fid = fopen('test.txt','w') fprintf(fid,'%f %f %f\n', P.') ; fclos...

거의 4년 전 | 1

| 수락됨

답변 있음
plot data on a meshgrid
Read about pcolor, surf

거의 4년 전 | 1

| 수락됨

답변 있음
How do I convert a non-normal distribution to an equivalent normal distribution?
Read about Box-Cox transformation.

거의 4년 전 | 0

답변 있음
Identify Zerocrossing Indices near to the peak of the other signal matlab
Multiple options: Use knnsearch Use interp1 Use InterX: https://in.mathworks.com/matlabcentral/fileexchange/22441-curve-inter...

거의 4년 전 | 0

답변 있음
select the first row in the matrix
A(1,:) Go through the basics here: https://www.mathworks.com/learn/tutorials/matlab-onramp.html

거의 4년 전 | 1

답변 있음
How to write code for diagonal matrix with specified input ?
n = 3 ; s = 2 ; iwant = zeros(n) ; for i = 1:s iwant(i,i)=1 ; end iwant

거의 4년 전 | 1

| 수락됨

더 보기