답변 있음
how can i bring 2 figures together?
Read about hold on. clc clear x1 = [0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5]; y1 = 2+exp((-x1).^3); plot(x1,y1) hold...

4년 초과 전 | 1

답변 있음
How can we calculate weight in CNN model?
Read here: https://in.mathworks.com/help/deeplearning/ref/trainingoptions.html#mw_4f311de8-ad53-4201-ac1a-47f66e0de52d Have a ...

4년 초과 전 | 0

| 수락됨

답변 있음
Plot two functions with several changing variables
p = 80; m = 10; n = 1:1:10; g = 9.81; N = 11; Lext = 68:0.1:80; L = 68; [n,Lext] = meshgrid(n,Lext) ; k = p.*g + m.*g...

4년 초과 전 | 0

답변 있음
export numerical data from selected data tips
If S is the structure. x = S(1).XData ; y = S(1).YData ;

4년 초과 전 | 0

답변 있음
What might be wrong with the code?
% The Boltzman Equation E1=-13.6; E2=-3.4; k=8.617*10.^-5; g1=2; g2=8; % T=[5000;10000;15000;20000;25000]; ...

4년 초과 전 | 0

답변 있음
How to do what MATLAB does with array[index:index] in Maxima?
v = [1 2 3 4 5] ; N = length(v) ; iwant = cell(N,1) ; for i = 1:N iwant{i} = v(1:i) ; end celldisp(iwant)

4년 초과 전 | 0

답변 있음
How to calculate MSE or RMSE of data points in 3D space?
https://in.mathworks.com/matlabcentral/answers/4064-rmse-root-mean-square-error

4년 초과 전 | 0

답변 있음
How can i make geotiff file with 2D longitude, 2D latitude and 2D data
Let A be your matrix and (xmin,xmax) be your xlimits and (ymin,ymax) be your y limits. % Get geo referenced R = georasterref...

4년 초과 전 | 1

답변 있음
How to extract x, y data for particular/selected points from a scatter plot?
Read about getpts, ginput. These functions will help to pick points. [x,y] = getpts() ; % double click to exit [x,y] = ginpu...

4년 초과 전 | 1

| 수락됨

답변 있음
How to map detected Braille dots (and their XY coordinates) into letters ( 0's 1's matrices of 3*2)?
You can make your all required matrices into a 3D. And compare the obtained matrix out of it (read about ismember), get the inde...

4년 초과 전 | 0

답변 있음
The matlab quiver arrow is lying down.
Play with scale. scale = 0.5 ; figure() quiver(time,Height,uu,vv,scale)

4년 초과 전 | 0

답변 있음
Unable to perform assignment because the size of the left side is 1-by-3-by-12-by-3 and the size of the right side is 3-by-12-by-2
When you are not sure of the dimension of the RHS matrix to save into LHS, you better save into a cell. flist=dir('*nirs'); st...

4년 초과 전 | 0

답변 있음
Import 3D matrix in .mat File
y=load('data.mat') names = fieldnames(y) ; n = length(names); iwant = zeros(128,128,n) ; for i = 1:n iwant(:,:,i...

4년 초과 전 | 0

답변 있음
How to rename a vertices of agraphs
a=[1 2 3]; b=[3 2 1]; g=graph(a,b); p=plot(g); L={'a' 'b' 'c'}; p.NodeLabel=L;

4년 초과 전 | 1

| 수락됨

답변 있음
How to do symbolic integration
Try substituing the values of m and n. syms omega positive real % syms n m positive integer syms x % assuming omega::rea...

4년 초과 전 | 1

답변 있음
matrix row, column change
E = rand(800,1) ; iwant = reshape(E,20,40) ;

4년 초과 전 | 1

| 수락됨

답변 있음
x=[1 2 3 4]y=[2 4 5 10]x1=[1,1.5,2.2,3.5,4] how to get previous matching value(from y) for x1 by refering x expected answer y1=[2 2 4 5 10] without forloop
x=[1 2 3 4]; y=[2 4 5 10]; x1=[1,1.5,2.2,3.5,4] ; % y1=[2 2 4 5 5] ; y1 = interp1(x,y,x1)

4년 초과 전 | 0

답변 있음
How can i find the peak/maxima of a plot in just a selected region?
If you know the range of your values, use logical indexing and use max to get maximum in that region. If you know the range of...

4년 초과 전 | 0

답변 있음
How to illustrate number of events per year/month (I want to
T = x1994_2020; idx = isnat(T.(1)) ; % pick dates T = T(~idx,:) ; % reove data for which there is no date [y,m,d,H,M,S...

4년 초과 전 | 0

| 수락됨

답변 있음
Index of repeated values
ad=[1 0 0 0 1 1 1 0 0 0 0 1 1 1 0 0] ; ad0 = zeros(size(ad)) ; ad0(logical(ad)) = find(ad) ; ii = zeros(size(ad0)); jj = a...

4년 초과 전 | 1

| 수락됨

답변 있음
Generating matrix of all possible combination
a = 100 : 100 : 1000; b = 0.1 : 0.1 : 1; iwant = zeros(10,2) ; iwant(1:2:10,:) = a(randi(length(a),5,2)) ; iwant(2:2:1...

4년 초과 전 | 0

답변 있음
Streamline pathline and streakline
t = linspace(0,2*pi) ; u = sin(t) ; v = 2*t ; [u,v] = meshgrid(u,v) ; streamslice(u,v)

4년 초과 전 | 2

답변 있음
Training plot taking very long to run
You don't plot the progress of training..it will eat away lot of time: 'Plots','training-progress', USe 'Plots','none', You...

4년 초과 전 | 0

| 수락됨

답변 있음
How to extract ECMWF data in specific point?
Let A be your 3d data. If you know the indices (i,j) just use: iwant = squeeze(A(i,j,:)) ; If you hvave the grid coordinates ...

4년 초과 전 | 0

답변 있음
how to change color for a 2D plot
x = [0.168149323 0.547990492 0.580721962 0.502272216 0.321295719 0.168149323]; y = [0.565541486 0.530969047 0.570321397 0.87862...

4년 초과 전 | 3

| 수락됨

답변 있음
Error using fclose Invalid file identifier.
You need not to use fopen and fclose etc for reading ncfiles in MATLAB. Reading ncfiles is very simple in MATLAB. You just need ...

4년 초과 전 | 0

답변 있음
Unable to perform assignment because the left and right sides have a different number of elements
The error is clear and work around is simple. You are trying to save more number of elements in LHS then it is initialized for. ...

4년 초과 전 | 0

답변 있음
How to use 'for' loop to string variable ?
Why you want to make names manually? You can get the files present in the folder using: matFiles = dir('*.mat') ; for i = 1...

4년 초과 전 | 0

답변 있음
Plot finite element method using Matlab
You can interpolate the values to a grid using griddata or scatteredInterpolant. Read about them. You can also plot contours u...

4년 초과 전 | 0

| 수락됨

답변 있음
Need help with plot
You can store the variables in while loop using: iwant = zeros([],1) ; counter=1; while err>0.008 counter = counter+1 ; ...

4년 초과 전 | 0

| 수락됨

더 보기