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

alrededor de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 2

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

más de 4 años hace | 0

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

casi 5 años hace | 0

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

casi 5 años hace | 0

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

casi 5 años hace | 0

| aceptada

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

casi 5 años hace | 0

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

casi 5 años hace | 2

| aceptada

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

casi 5 años hace | 0

| aceptada

Respondida
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

casi 5 años hace | 0

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

casi 5 años hace | 0

| aceptada

Respondida
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

casi 5 años hace | 0

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

casi 5 años hace | 0

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

casi 5 años hace | 0

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

casi 5 años hace | 0

| aceptada

Cargar más