Beantwortet
Solving tridiagonal system by Thomas Algorithm
I don't know about the Thomas, but you wish to use any other way's, you can use the following MATLAB fuction to solve it easily ...

etwa 5 Jahre vor | 0

Beantwortet
What is wrong with my One Third Octave Filter for Frequency Weighted Acceleration
? In the initial check, "wl" and "wu" are vector, it may be scalar data. Since it represents the lower and upper cuffs of frequ...

etwa 5 Jahre vor | 0

| akzeptiert

Beantwortet
Colored values for cellular automatons
pcolor or imagese pcolor(mat_data); colorbar Set the colorbar properties as per your requirements https://in.mathworks.com/...

etwa 5 Jahre vor | 1

| akzeptiert

Beantwortet
Thresholding based on smaller domains
You can try with any size, lets suppose you have image named as 'grayImage' (256x256) grayImage=randi([0,255],[256,256]); %Rand...

etwa 5 Jahre vor | 0

Beantwortet
how to save iterations obtained from mat2cell?
"how to save iterations obtained from mat2cell?" You can save cells within a another cell, as B B=cell(1,numel(A)) for B{i}...

etwa 5 Jahre vor | 0

Beantwortet
Plotting all waves on the same plot and sequencing them together
plot(x,y); %Plot 1 hold one; plot(x,y); %Plot 2 .......% son on legend(....); % Add legends to differentiate htt...

etwa 5 Jahre vor | 0

Beantwortet
Converting a string array into a number array
#Edited num_str='123456789' num_str - '0' Result: ans = 1 2 3 4 5 6 7 8 9

etwa 5 Jahre vor | 0

| akzeptiert

Beantwortet
How can I merge text to numeric data?
A = [1 2 3 4 5 6 7 8 9 10]'; B = ["L", "R"]'; r=length(A)/length(B); B_update=repmat(B,[r,1]) t=table(A,B_update) Result: ...

etwa 5 Jahre vor | 1

| akzeptiert

Beantwortet
derivative from set of values code.
Hints Only: Extracts the displacement and time vector separately from the input data matrix , use indices colon":" for all ro...

etwa 5 Jahre vor | 1

Beantwortet
dsolve code is not running
The issues are here f1=F1.f; g1=F1.g; h1=F1.h; Here, lets say for first line of the code f1=F1.f; Whre F1 is the sym va...

etwa 5 Jahre vor | 0

Beantwortet
Error Index in position 1 exceeds array bounds (must not exceed 4).
Here, x1 if you check carefully >> whos x1 Name Size Bytes Class Attributes x1 4x7 ...

etwa 5 Jahre vor | 1

| akzeptiert

Beantwortet
Creating 3-D surface and contour plot from csv
Please refer the MATLAB docs data=readmatrix('180.xlsx'); figure,surf(data); % Here matrix elements represent the heights (z ...

etwa 5 Jahre vor | 0

Beantwortet
index exceed matrix dimensions
Issue with this line p3i=1./(((((z(j)-D(j))./(L./2)).^2)+1).*sqrt((((z(j)-D(j))./(L./2)).^2)+2)); You are trying to access D a...

etwa 5 Jahre vor | 0

| akzeptiert

Beantwortet
replace the data from int to char in the matrix 200x1
I am sharing one example here, hope it helps data=randi(3,[1,10]); data_cell=table(data); str_data={'Normal','Left','Right'}...

etwa 5 Jahre vor | 0

| akzeptiert

Beantwortet
Remove a part or object from an image
rgbImage=imread('laser_image.png'); grayImage=rgb2gray(rgbImage); mask=bwareafilt(grayImage>170,1); %Change the threshod valu...

etwa 5 Jahre vor | 0

Beantwortet
Break X-axis
Break? xlim([0 260])

etwa 5 Jahre vor | 0

Beantwortet
How to perform clutter removal on this signal?
@Adam Danz clearly stated, If you know the x range, which is to be set to zero, then you can directly locate the indices of the ...

etwa 5 Jahre vor | 0

Beantwortet
My code only plots one point
Define Before the loop t=1:N for i=1:length(t) tao_s= pic_s(i)= end plot(t,pic_s); Also you can avoid the loop here (reco...

etwa 5 Jahre vor | 0

| akzeptiert

Beantwortet
Matlab Spelling letter by letter code
One Way: Splits Words to Letters, like >> word='Kalyan' word = 'Kalyan' >> num2cell(word) ans = 1×6 cell array ...

etwa 5 Jahre vor | 1

| akzeptiert

Beantwortet
Determine the element's row and column position based on the specific element
Is this? a= [1 3; 4 8; 2 6] b= [1;2;3] c= {'A','B','C'} [r1,c1]=find(max(a(:))==a) b(r1) c{c1}

etwa 5 Jahre vor | 1

| akzeptiert

Beantwortet
Indexing in "for loops"
Here I have considering three assumptions and tried to reproduce the same, there is no error Suppose "value" is the scalar resu...

etwa 5 Jahre vor | 0

| akzeptiert

Beantwortet
If statement in for loop does not work
It's because floating point numbers representation (Exactly). Hence If you're trying to do logical comparision (==) with floatin...

etwa 5 Jahre vor | 0

Beantwortet
How to calculate mean and standard deviation in from the image sample
As you mentioned, you have the h1,h2,h3...(Already computed or known data) mu=(h1+h2+h3+h4)/4; And standard deaviation as per ...

etwa 5 Jahre vor | 0

Beantwortet
change table var type
"My table is already there and I need to change the var type of a column." If the data is numeric, you can use num2str(variable...

etwa 5 Jahre vor | 0

Beantwortet
Convolving 2D image with 1D filter
No, Once I tried the same, I have get the resultant image, I have shown the result on same size gray Image img=rgb2gray(imread(...

etwa 5 Jahre vor | 0

Beantwortet
How can I change this code to form a continuous plotted line?
Modified Done: Considering time as new variable, t form 1 to 20-1, as t=1 in defined before loop, may be considering initial v...

etwa 5 Jahre vor | 1

| akzeptiert

Beantwortet
Removing rows from table based on content
If you are wish to check the single string with x only, as in the rows 6 and 7, then you can accomplish it easily. In that case ...

etwa 5 Jahre vor | 0

| akzeptiert

Beantwortet
Assigning values from an image set(strain values in 3d) to coordinate points and store the data
If you know the indices (pixels location), you may directly apply the same Let say id_r=[3,4,5,6,7]; id_c=[2,4,10,11,7]; i...

etwa 5 Jahre vor | 0

Beantwortet
help with preallocating matrix ?
If it is are fixed,can consider the extra zeros (If generated data are not sufficients to allocate all) Archive=zeros(1,200); ...

etwa 5 Jahre vor | 0

Gelöst


Find Logic 19

etwa 5 Jahre vor

Mehr laden