답변 있음
How do I delete all rows in a table depending on one column's NaNs?
A = [1 2 3 NaN 4 5 3 4 NaN ] ; A(isnan(A(:,3)),:)=[]

4년 초과 전 | 0

| 수락됨

답변 있음
why do I get this error while using find to determine the element in my list?
You should not comapre floating point numbers like that. Try: tol = 10^-5 ; % try changing the tolerance find(abs(kff-k_f...

4년 초과 전 | 0

| 수락됨

답변 있음
Trying to plot different graphs for different values on the same figure
% Part B clc; clear all; close all; A = 2 ; t1 = 0.1 ; delta_h = 0 ; h = 0.1 ; z = 2 ; Kc = 1:1:5 ; N = length(Kc) ; ...

4년 초과 전 | 1

| 수락됨

답변 있음
How to iterate matrix multiple times?
La = [ -5.2622 3.2610 1.0999 0 2.0590 0 0 0 0 1.0999 -2.4128 0 -0.1...

4년 초과 전 | 1

| 수락됨

답변 있음
Plot function not working
It is working fine. Copy and run like shown below: %to generate all different waveforms clc; a=5;b=6;c=7;d=8; t=0:0.01:1;...

4년 초과 전 | 0

답변 있음
The figure in my code does not appear
Also you can save them into an array and plot after the loop: A = 2 ; Kc = 1 ; t1 = 0.1 ; delta_h = 0 ; h = 0.1 ; z = 2 ; ...

4년 초과 전 | 1

답변 있음
The figure in my code does not appear
USe marker. As you are plottint point by point. clc; close ;clear all A = 2 ; Kc = 1 ; t1 = 0.1 ; delta_h = 0 ; h = 0.1...

4년 초과 전 | 0

| 수락됨

답변 있음
Discretize the 3-D surface into individual points in MATLAB
Read about slice. This is your function.

4년 초과 전 | 0

답변 있음
how to do pcolor plots from 3d data?
This is a 3D data, read about slice.

4년 초과 전 | 0

답변 있음
ASSIGN FINE MESH VALUES TO A NEW COARSER MESH
It depends on how your mesh is. Is unstructured or structured. If structured mesh you can use interp2 or griddata. If it is unst...

4년 초과 전 | 0

답변 있음
Missing value for predictor in Classification Learner App
Either you can remove those missing values or fill the missing values using is the function fillmissing. Read about fillmissing....

4년 초과 전 | 0

답변 있음
numerical array is being saved as string
Read about str2double and str2num.

4년 초과 전 | 0

답변 있음
Performing opposite of repelem()
Read about imresize. iwant = A(1:2:end,1:2:end) ;

4년 초과 전 | 1

| 수락됨

답변 있음
A very strange problem
f='@(D0,D1,dt)[(-D0)*dt^0.5+(-D0*D1)*dt^1.5/2;1/2*(-1+(1)+(2*D1+2*D0^2)*dt/2)]'; f=vectorize(f); f=str2func(f); D0=1;D1=1;dt=...

4년 초과 전 | 1

답변 있음
MatLab single precision epsilon versus double precision epsilon
For single precision epsilon is: 2^-23 For double precision epslon is: 2^-52

4년 초과 전 | 0

답변 있음
What does ix=ismember(vars,["state","source"])| contains(vars,["lat", "lon", "timestamp", "damage", "event"]); do?
idx1=ismember(vars,["state","source"]) ; % gives logical indexing where state, source are presnt in vars idx2 = contains(var...

4년 초과 전 | 0

| 수락됨

답변 있음
How can I create a set of points that follows the behavior of a given set of points?
That is pretty simple right....To whatever z = 14 points are there i.e. (x,y) simple replace z values with z = 15. And out of th...

4년 초과 전 | 0

| 수락됨

답변 있음
Creation of circles of x radius in a matrix
% Make grid [X,Y] = meshgrid(1:10) ; % Make random radii for circle R = randi(5,size(X))/10 ; % Make circle coordinates ...

4년 초과 전 | 0

| 수락됨

답변 있음
If I have a 2000 x 130 matrix, how do I convert it to a 500 x 130 matrix by adding all four rows together by using Matlab loop
A = rand(2000,130) ; [r,c] = size(A); nlay = r/4; B = permute(reshape(A',[c,r/nlay,nlay]),[2,1,3]); iwant = reshape(sum...

4년 초과 전 | 1

| 수락됨

답변 있음
Include legends based on column names in for loop
id = (1:10)' ; x = rand(10,1) ; y = rand(10,1) ; z = rand(10,1) ; T = table(id,x,y,z) figure hold on for i = 2:4 ...

4년 초과 전 | 1

| 수락됨

답변 있음
how to plot specific column from a matrix
A = rand(100,4) ; plot(A(:,1),A(:,4)) % plot 1 column w.r.t. 4 column If this is not working. Show us the full error or tel...

4년 초과 전 | 0

답변 있음
Search for a string within a string
Read about the function strfind. str = 'Need to search for a specific string inside a longer string and return the string and ...

4년 초과 전 | 0

답변 있음
how to plot graph using multiple variable
theta = linspace(10,80)*pi/180; da=1e-9:3e-7; na = [1.30 1.31 1.32 ] ; P = zeros(length(na),length(theta)) ; for i = 1:l...

4년 초과 전 | 0

| 수락됨

답변 있음
How can I save all slices from 3D image?
for i=1:45 slice=Myimage(:,:,i); pcolor(slice) ; shading interp fname = ['slice_',num2str(i),'.png'] ; save...

4년 초과 전 | 1

답변 있음
How to create a binary mask
It looks like imbinarize is working fine. I = imread('https://in.mathworks.com/matlabcentral/answers/uploaded_files/860265/im3...

4년 초과 전 | 0

답변 있음
how to simplify symbolic expressions
pretty(vpa(b1(3,3),8)) It looks that equation has lot of numbers and fractional powers of EI. FEw numbers are very small and fe...

4년 초과 전 | 0

답변 있음
generate a matrix with numbers between [0,1]
value = 'Insert a value for n: '; x = input(value); matrix = rand(x,x); matrix2 = matrix ; % you need to create matrix2 m...

4년 초과 전 | 0

답변 있음
Find all IDs in pointLocation for point located on boundary of polygon.
Read about inpolygon function.

4년 초과 전 | 0

답변 있음
how to add a row to a matrix?
Note that you want to append zero before to the first element of A. What you did is replace the first element of A with 0. A=[...

4년 초과 전 | 0

| 수락됨

답변 있음
How can we order nodes within a cluster based on the distance between nodes and cluster head with smaller index values to the nearer nodes.
You can get the nearest points to a given point using knnsearch. Read about the function.

4년 초과 전 | 0

더 보기