Answered
Can I plot geographic data defined on a triangular mesh on a map axes object?
You can convert your triangular data into structured using griddata. After converting into a grid you can use surfm. Read abou...

4 years ago | 0

Answered
vector array in matlab
LEt A be your cell array. idx = contains(A,'hi') ; nnz(idx)

4 years ago | 0

| accepted

Answered
How to plot the region corresponding to an inequality?
You are good to go with second method: h = 0.01; [x,y] = meshgrid(-sqrt(3):h:sqrt(3),0:h:3); % e = zeros(size(x)); Z = y-...

4 years ago | 0

| accepted

Answered
Machine learning, Neural network with data in array format
You can give a try with this. https://in.mathworks.com/help/deeplearning/ug/create-simple-deep-learning-network-for-classifica...

4 years ago | 0

Answered
Finding start and end point of array from csv
idx = find(Raw_y==1) ; [idx(1) idx(end)]

4 years ago | 0

| accepted

Answered
Inconsistent row/column dimensions.
l=633*(10)^(-9); k0=(2*pi)/l; nc=1.33; na=1.43265; nf=1.59; nm=0.064+1i*4; ns=1.49; a=54:0.01:70 ; df=linspace(1,...

4 years ago | 1

| accepted

Answered
How to find the local maxima in a point cloud?
Read about max.

4 years ago | 1

| accepted

Answered
Adding addition color to the plot
load('H1_C1_C2_case1_WLTC_VH_USI86XX_15g_Fuel_EE315_1506_2021_01-Feb-2022_1.mat') A=xlsread('Same_porosity_new.xlsx','J3:S18002...

4 years ago | 0

| accepted

Answered
how to exportapp in jpg format
https://in.mathworks.com/matlabcentral/fileexchange/24323-screencapture-screenshot-of-component-figure-or-screen

4 years ago | 0

Answered
adding text to scatter plot
You may write: str = strcat('7427 [35 35]') ; And then use text.

4 years ago | 0

Answered
How to display FWHM in the graph
https://in.mathworks.com/matlabcentral/answers/741247-how-to-find-fwhm-for-each-peak#:~:text=fwhmx%20%3D%20x(index2)%20%2D,is%20...

4 years ago | 0

Answered
Index exceeds the number of array elements (1)
[n,m]=size(keyur); jay = linspace(55,85,n)*1000 temperature= linspace(0.0002,0.0003,n) ; for i=1:n X1=keyur(i,1); X2=k...

4 years ago | 1

Answered
Scatter Plot adding string in X axis
https://in.mathworks.com/help/matlab/ref/xticklabels.html

4 years ago | 1

| accepted

Answered
storing The for loop data
The below line A=xlsread('Compare_All_cases','B1:AB37'); B=[] for i= 1:12 B=[B;A(i,:)] end can be achieved by: A=xlsr...

4 years ago | 1

| accepted

Answered
Why is there an error on my plot line?
f = @(x) 3*exp(-x)+2*sin(x); X = 0:3; Y = f(X); n = length(X); P = 0; syms x; L = sym(zeros(size(X))); for i = 1:n L...

4 years ago | 0

| accepted

Answered
What does this array operation do?
If array2 is double and have fractions it will throw error. If array2 is logical i.e. it has 0 and 1's. It will give elements ...

4 years ago | 0

Answered
a loop consist on images how to get some specific data from this loop
for i=1:300 s = strcat('C:\Users\shake\OneDrive\Desktop\ab\',int2str(i)); end % First block for a = 1:8 load(s{a})...

4 years ago | 0

Answered
How to store matrices of different sizes on a variable.
Try saving them into a cell array as the dimensions varies. high_x{cc}= SNRdB_x(SNRdB_x(cc,:)>SNRdB(cc));

4 years ago | 0

| accepted

Answered
scatter Plot issues in Plotting
A=xlsread('Compare_All_cases','B6:AB9') figure hold on for i=1:length(A) time=[25,50,75,200] Y=A(:,i) scatter(...

4 years ago | 0

| accepted

Answered
if loop on array
a=[3 4 3 44 3]; b=[4 3 4 34 26]; if (any(a==3)) idx = a == 3 ; if any(b(idx) == 4 ) fprintf('ali\n') ...

4 years ago | 0

Answered
First minimum larger than zero
a=[14,9,4,-1,-6,-11,9,4,-1] ; [val,idx] = min(abs(a))

4 years ago | 1

| accepted

Answered
I can't load coastlines in Matlab 2021b
Let us know what this which coastlines.mat -all Shows you. Also have a look in this link: https://in.mathworks.com/matlabcen...

4 years ago | 1

Answered
dot product in 3d
Nk=100 Ne=5 Nz=3 for k = 1:Nz for i=1:Nk for j=1:Ne exp(i,j,k) = dot(Q(j,:,k),v_y(i,:,k)) ; ...

4 years ago | 0

Answered
Calculating the Volume between two 3D surfaces/meshes
You can use trapz. https://in.mathworks.com/matlabcentral/answers/142739-how-can-i-know-the-volume-behind-a-surface

4 years ago | 0

Answered
Create a row vector containing integers from 1 to 10
A = 1:10 ; % double I = uint8(1:10) % unsigned integers

4 years ago | 0

Answered
How can I print histogram data to text file?
B1 = [centers1;counts1;values1]; In the above the dimensions of counts1, values1 are same but centers1 has one element extra th...

4 years ago | 1

Answered
3d-plot regarding 2 vectors and a matrix
Read about surf. Let Iq, Id be your vectors of size 1x25 and T be your torque matrix of size 25x25. surf(Iq,Id,T) colorba...

4 years ago | 1

Answered
FEM grid generation with inclined sides
You may refer the following links. These might help you. https://in.mathworks.com/matlabcentral/fileexchange/33731-meshing-a-p...

4 years ago | 0

Answered
I need to find the FFT plot of my excel data.
Replace this line: load Target1.mat by Target1 = readtable('Target1.xlsx') ;

4 years ago | 1

| accepted

Answered
How do I put multiple outputs of a function into separate variables
It is unnecessary. You need not to do that. The code is already in the way you want. t1 = ((-B)+((B.^2-4*A*C)).^0.5)/(2*A) Yo...

4 years ago | 0

| accepted

Load more