Réponse apportée
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)

presque 4 ans il y a | 1

Réponse apportée
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']; ...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 0

Réponse apportée
how can i see a points(x,y) value from a matlab plot
Read about datatip

presque 4 ans il y a | 0

Réponse apportée
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...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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')

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Converting 15 minute data to daily data
Read about retime

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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=...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Image detect and convert white image
I = imread('https://in.mathworks.com/matlabcentral/answers/uploaded_files/1015935/test.png') ; I1 = rgb2gray(I) ; I2 = ~imbin...

presque 4 ans il y a | 0

Réponse apportée
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...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
I want vector surface plot
Prices = 1:30 ; Position = 1:30 ; Quantity = rand(1,30) ; Quantity = repmat(Quantity,30,1) ; surf(Prices,Position,Quantity...

presque 4 ans il y a | 0

Réponse apportée
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

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 0

Réponse apportée
'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...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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 ...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
How to find similar rows in two dataset?
Read about ismember. Load bot the files into MATLAB using readtable and then use ismember.

presque 4 ans il y a | 0

Réponse apportée
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...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
For cycle over a struct array
s = struct2cell(hs) ; N = length(s) ; for i = 1:N pcolor(XP,Yp,s{i}) drawnow end

presque 4 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
Get separate values from a mat file
load Solution.mat ; c = struct2cell(conf_solution); iwant = cell2mat(squeeze(c(2,:,:)));

presque 4 ans il y a | 0

Réponse apportée
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)

presque 4 ans il y a | 0

Réponse apportée
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)...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
smoothing a graph using matlab
Read about smooth, polyfit

presque 4 ans il y a | 0

Réponse apportée
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...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
plot data on a meshgrid
Read about pcolor, surf

presque 4 ans il y a | 1

| A accepté

Réponse apportée
How do I convert a non-normal distribution to an equivalent normal distribution?
Read about Box-Cox transformation.

presque 4 ans il y a | 0

Réponse apportée
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...

presque 4 ans il y a | 0

Réponse apportée
select the first row in the matrix
A(1,:) Go through the basics here: https://www.mathworks.com/learn/tutorials/matlab-onramp.html

presque 4 ans il y a | 1

Réponse apportée
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

presque 4 ans il y a | 1

| A accepté

Réponse apportée
for loop increment problem
clc clear % first we should note that this is a log-log plot % Let's introduce k first k = logspace(0, 4, 100)'; %connectivi...

presque 4 ans il y a | 0

Charger plus