Réponse apportée
Plot points with different brightness
Read about scatter

plus de 3 ans il y a | 0

Réponse apportée
Find the intersection of two lines with multiple intersections.
You may use this: https://in.mathworks.com/matlabcentral/fileexchange/22441-curve-intersections % Basic Variables k_prime = 1...

plus de 3 ans il y a | 0

Réponse apportée
To extract the last sub string from strings
expression = '\d+\.?\d*EP'; s = regexp(input,expression,'match') ; s = strrep([s{:}]','EP','') ; s = str2double(s)

plus de 3 ans il y a | 0

Réponse apportée
How to fix the incorrect shape of a mesh
Refer this: https://in.mathworks.com/matlabcentral/fileexchange/15161-plotcube You need to arrange the vertices in an order......

plus de 3 ans il y a | 0

Réponse apportée
sketch cone in matlab
t = linspace(0,2*pi,50) ; r = linspace(0,3,50) ; [th r] = meshgrid(t,r) ; x = r.*cos(th) ; y = r.*sin(th) ; z = r ; surf(x...

plus de 3 ans il y a | 1

Réponse apportée
Find value(string) in specific line
T = readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/1112505/Example.txt') ; idx = contains(T.(1),'cup'...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Draw a 3D array containing only 0,1 into a 3D image
[m,n,p] = size(A) ; [X,Y,Z] = meshgrid(1:m,1:n,1:p) ; x = X(:) ; y = Y(:) ; z = Z(:) ; v = A(:) ; idx = v==1 ; scatter3...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
what's the problem in my loop I couldn't understand in this
x=linspace(-1,1,256); [X,Y]=meshgrid(x,x); r=sqrt(X.^2+Y.^2); R=0.05; t = 0.3; l= 0:36:360; A = cell(1,length(l)) ; for ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
how to use string in eval function
x = 1; y = 'Q1'; sheet =strcat('P',num2str(x),'_',y,'_final')

plus de 3 ans il y a | 1

Réponse apportée
How do I remove a known trendline from data?
Use polyfit, fit a striaght line and subtract this from the data.

plus de 3 ans il y a | 0

Réponse apportée
Definition of fiter in data by text in colomn
idx = strcmp(Data.(4),'P1') ; T1 = T(idx,:) ;

plus de 3 ans il y a | 2

| A accepté

Réponse apportée
How to replace string using if else condition In MATLAB
if strcmp(ModelPrediction.Prediction,'Apple') content_str = 'Apple'; else content_str = 'Non-Apple'; end

plus de 3 ans il y a | 0

Réponse apportée
computed the left side and right side matriecs
Read about matlab array element by element operations. You need to use .*. At one place, you have missed * operator. Consider u...

plus de 3 ans il y a | 0

Réponse apportée
How can I change the data in lat lon and time format so that I can make a spatial map
The ncfile has lon and lat information. ncfile = 'ice_conc_nh_ease2-250_icdr-v2p0_202108011200.nc'; lon = ncread(ncfile,'lon')...

plus de 3 ans il y a | 0

Réponse apportée
In 3D plot, how is the image displayed on a specific 3D spatial plane?
Have a look on this: https://in.mathworks.com/matlabcentral/fileexchange/28581-imsurf-3d-images

plus de 3 ans il y a | 0

Réponse apportée
How to draw single bounding box by combining all bounding boxes
Image=imread('https://in.mathworks.com/matlabcentral/answers/uploaded_files/1107335/GFSK.png') ; im1=im2bw(Image); invertedI =...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
I have a 648x48 matrix and I want to plot it with corrplot(), but since its to big, how can I divide the graph into sections?
GEO = rand(648,48) ; [r,c] = size(GEO); nlay = 48/12; out = reshape(GEO,[r,c/nlay,nlay]); for i = 1:nlay figure(i) ...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
how to plot a summation signal in Matlab?
You need to check the code. A = rand ; B = rand ; k = 1:2:99 ; t = linspace(0,100)' ; x =zeros(size(t)) ; for i = 1:le...

plus de 3 ans il y a | 1

Réponse apportée
Read First n line then plot and read next lines and plot and collectively make movie of all graphs.
T=readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/1106475/Plug.txt\Plug.txt','ReadVariableNames',true);...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
how to set values in the particular column to constnat value based on greater than equal to criteria
A(A(:,7)>1,7) = 1 ;

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Print or display a group of numbers contained in a vector with loops
REad about reshape a = [2 4 3 5 9 8 2 1 0 2 3 4 7 8 9]; b = reshape(a,3,[])'

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Need to create a for loop for this problem
idx = (0:128:2048)' ; I = [idx(1:end-1)+1 idx(2:end)] ; for i = 1:size(I,1) I(i,:) end

plus de 3 ans il y a | 0

Réponse apportée
How to add a scalar to the first element in each row of an array?
A = rand(5,6) ; % random data [m,n] = size(A) ; iwant = zeros(m,n+1) ; iwant(:,2:end) = A ; % Calculate the first element...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
How to run a for loop multiple times on some images?
n = repmat(1:4,1,8) ; idx = randsample(length(n),length(n)) ; n = n(idx) ; Run a loop on n, 1:4 stand for the four images res...

plus de 3 ans il y a | 0

Réponse apportée
How to assign 255 pixel value to Index Values and crop image in MATLAB
x0 = min(rows1) ;x1 = max(rows1) ; y0 = min(columns1) ; y1 = max(columns1) ; I = imcrop(grayImage,[y0 x0 (y1-y0) (x1-x0)]) ...

plus de 3 ans il y a | 0

Réponse apportée
slipting sata manually into train, validation and test sets, then using fitcnet and testing accuracy
Refer here: https://in.mathworks.com/matlabcentral/answers/395136-how-to-divide-a-data-set-randomly-into-training-and-testing-da...

plus de 3 ans il y a | 0

Réponse apportée
devide data into train set, validation set and test set
Read about dividerand. Also have a look on: https://in.mathworks.com/matlabcentral/answers/395136-how-to-divide-a-data-set-rand...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Arrow in quiver plot does not show with change of position
You may consider dividng the component of vector with the magnitude and plot. spacing = 0.1; [x,y] = meshgrid(-1:spacing:1); ...

plus de 3 ans il y a | 0

Réponse apportée
Pcolor plot question. gradational color change.
x = 1:20 ; y = TIME ; % 81x1 array Z = Y ; % 81x20 array pcolor(x,y,Z) ; % if required transpose Z

plus de 3 ans il y a | 0

Réponse apportée
How to; For loop of angle in projectile motion
You are not updating the theta0 to find the range. You need to input theta0 to the function. clc; clear all ; g = 9.82; %grav...

plus de 3 ans il y a | 1

Charger plus