Answered
How to store data in cell array?
Just traspose the cell array, let's data is a cell array then- new_data=data'

4 years ago | 0

Answered
Plotting average value with max-min area
c_color=['r','m','y']; for i=3:-1:1 p=Cn_range(i,:); plot(p); area(p,'FaceColor',c_color(i)); hold on; end...

4 years ago | 0

Answered
How can I store user input
There are multiple ways (Any One) Store the r and c variable data in text file or other files, like excel (see save function) ...

4 years ago | 0

Answered
I need to plot the following script. But it gives an error.
Fw=1./(cos(w*Hs/Vs_soil));

4 years ago | 2

Answered
how to extract objects from an image after filling in the objects in the binary image
Original BW image BW_result=bwareafilt(BW,2); % Get the largest 2 max size objects result=~(BW_result.*BW); % Nand Logical Op...

4 years ago | 0

Answered
How can I find a number from a matrix, which is greater than and closest to 1.
Hints: Use logical indexing Get the data those are greater than 1: mat>1 Subtract 1 from all elements of the matrix - mat-1 G...

4 years ago | 0

| accepted

Answered
can someone help me with this code? there is something wrong and I don't know what it's.
Replace all lines axis ([th0 thl -inf inf]); More figure plot (th0:dth:thl, wBD , th0:dth:thl , alBD/100 ,'lineWidth', 2); ...

4 years ago | 0

Answered
how to plot columns of two matrices against each other?
mat1=... mat2=... for i=1:7 plot(mat1(:,i),mat2(:,i)); hold on; end

4 years ago | 0

Answered
Matlab Matrix plot from a for-loop
pi_aprox=zeros(1,30); n=6; g2n=zeros(1,30); U_neue=zeros(1,30); g2n(1)=1; for i=1:30 U_neue(i)=n*g2n(i); pi_aprox...

4 years ago | 0

Answered
Adding a filter to only white regions of image.
result_image=gray_image.*bw_image; %Now you can apply the filter on result_image

4 years ago | 0

| accepted

Answered
sort output of roots or residue so that the repeated roots occur together
>> data=roots([1 8 38 88 121]) data = -2.0000 + 2.6458i -2.0000 - 2.6458i -2.0000 + 2.6458i -2.0000 - 2.6458i ...

4 years ago | 0

Answered
how to get Y Value from a plot having 3 curves as shown in figure?
I have assumed that you have the 3 data for three individual plot, with respect to same x values, let say y1,y2,y3 for the same ...

4 years ago | 0

Answered
Manipulation of certain matrix elements which meet a certain criterion
mat=randi([-5,5],[100,100]); % Sample Matrix [r,c]=find(mat(10:15,11:13)<0==1); % Get the indices mat(9+r,10+c)=x; % x Manupu...

4 years ago | 0

Answered
FFT of Signal doesn´t work well
xabs(2nd Plot) is the absolute of fft ??

4 years ago | 0

Answered
Determining mean and creating a bar chart in Matlab
load LabelTable.mat % Extract data % ID 1 Animal_ID_1 = T(T.Caller_ID==1,:); % ID 2 Animal_ID_2 = T(T.Caller_ID==2,:); % I...

4 years ago | 0

Answered
Is there a way to automatically extract the first and last number in a for loop?
So my question is, is there a way to automatically extract the first and last number in the sd column and place them- Just stor...

4 years ago | 0

Answered
Segmentation of multiples ecg signals
First Part: load ecg_data_file Read the y axis data (mV) as another column data & store in new variable, say ecg_data. The ti...

4 years ago | 0

Answered
I have an image ( bit it has a ‘spotty’ appearance). Can you help restore it to a less spotty state
Please follow this for reference https://in.mathworks.com/matlabcentral/fileexchange/69333-image-denoising-using-notch-filter-...

4 years ago | 0

Answered
dsolve for multiple plots on a single figure
Using Loop A = 2; % cross-sectional area (m^2) T = 0.1; % integral time c...

4 years ago | 0

Answered
How do I select the particular region of the segmented image in MATLAB
Possible: Convert the image to binnary & trace the region?? If you can perform an operation on a binary image, its indexes can a...

4 years ago | 0

Answered
how to save the data in csv file from the plot
Options: The plot is a figure, you can save as Matlab .fig files (Use save as option) Save the figure plot result as an image ...

4 years ago | 0

| accepted

Answered
Given a linear system i want to do Gauss-Seidel iteration.But getting error.Would appreciate if anyone fix me the code. Thanks.
No coding syntax error x(1)=1.5; y(1)=-1; z(1)=1; iter(1)=0; for n=1:4 iter(n+1)=n; x(n+1)=(16+3*y(n)-2*z(n))/8; y...

4 years ago | 0

Answered
Add multiple elements to array
Yes it's OK, horizontal concatenation x=[x,3] Example: >> x=1:4 x = 1 2 3 4 >> x=[x,9:12] x = 1 ...

4 years ago | 2

| accepted

Answered
Image pre-processing to remove noise
Absolutely possible, you can remove the white pixels based on area (Extract objects from binary image by size) and do some AND o...

4 years ago | 0

| accepted

Answered
I want to Generate Chirp Signal
See the MATLAB inbuilt function, you need to change the properties only https://in.mathworks.com/help/signal/ref/chirp.html

4 years ago | 0

Answered
How to write loops within loops for a function.
Vs = 8:-0.1:7 o/p: 8 7.9 7.8 7.7 7.6 7.5 7.4 7.3 7.2 7.1 7 Hoe you can do the ...

4 years ago | 0

| accepted

Answered
xlswrite() to write to csv file not working
You are trying to save in CSV, Prefer this one https://in.mathworks.com/help/matlab/ref/writematrix.html

4 years ago | 0

Answered
Matrix dimension conversion for image input layer
Sir, you can convert the size of the image from 2D to 3D using the following way (The image isualization is not affected) ori_i...

4 years ago | 0

Answered
sum of array by specific index value
result=sum(second_arary(first_array)) More result=sum(hasil_tambah_array(index))

4 years ago | 0

Answered
Image pre-processing to make pixels in one straight line
Yes, you can do that multiple ways Get the two highest-spaced white pixels in the image, column numbers (left column and right ...

4 years ago | 0

| accepted

Load more