Respondida
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 ...

más de 5 años hace | 0

Respondida
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...

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 1

| aceptada

Respondida
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...

más de 5 años hace | 0

Respondida
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}...

más de 5 años hace | 0

Respondida
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...

más de 5 años hace | 0

Respondida
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

más de 5 años hace | 0

| aceptada

Respondida
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: ...

más de 5 años hace | 1

| aceptada

Respondida
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...

más de 5 años hace | 1

Respondida
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...

más de 5 años hace | 0

Respondida
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 ...

más de 5 años hace | 1

| aceptada

Respondida
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 ...

más de 5 años hace | 0

Respondida
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...

más de 5 años hace | 0

| aceptada

Respondida
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'}...

más de 5 años hace | 0

| aceptada

Respondida
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...

más de 5 años hace | 0

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

más de 5 años hace | 0

Respondida
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 ...

más de 5 años hace | 0

Respondida
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...

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 1

| aceptada

Respondida
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}

más de 5 años hace | 1

| aceptada

Respondida
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...

más de 5 años hace | 0

| aceptada

Respondida
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...

más de 5 años hace | 0

Respondida
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 ...

más de 5 años hace | 0

Respondida
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...

más de 5 años hace | 0

Respondida
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(...

más de 5 años hace | 0

Respondida
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...

más de 5 años hace | 1

| aceptada

Respondida
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 ...

más de 5 años hace | 0

| aceptada

Respondida
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...

más de 5 años hace | 0

Respondida
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); ...

más de 5 años hace | 0

Resuelto


Find Logic 19

más de 5 años hace

Cargar más