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

4년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
Finding start and end point of array from csv
idx = find(Raw_y==1) ; [idx(1) idx(end)]

4년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
How to find the local maxima in a point cloud?
Read about max.

4년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

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

4년 초과 전 | 0

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

4년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

답변 있음
Scatter Plot adding string in X axis
https://in.mathworks.com/help/matlab/ref/xticklabels.html

4년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

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

4년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

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

4년 초과 전 | 0

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 0

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

4년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
Unrecognized function or variable 'tankvolume'.
It looks like either you are running the function using F5 key or run button. You need to save the function on the name tankvolu...

4년 초과 전 | 1

| 수락됨

더 보기