How to change LineWidth and MarkerSize in plot fit curve ?
Can you try this way? figure,plot(f,'r--'); hold on; plot(x,y,'^b','MarkerSize',10); May be because of different class, her...

2 Monate ago | 0

| accepted

How to calculate all the numbers in an array with some conditions?
"The problem is I need the value of phi is restricted between-2pi and 2pi. (The angle value (th) I stated was 20 degree but it c...

2 Monate ago | 0

Counting the amount of overlap for 2D surfaces
This way: a=1:20; b=1:180; [x,y]=meshgrid(a,b); data=randi(100,[180,20,20]); tiledlayout(5,4);% 20 Plots for i=1:20 ...

3 Monate ago | 0

how to extract the area of highlighted circle from the original image? I don't want to include part 2 area. I have attached original file along with the highlighted file
This one: #Step 1: Morphological Operation to remove those unwanted Region (You may avoid Morpho operation. Please see the dif...

3 Monate ago | 0

| accepted

How to Change Array Values with some Random numbers
K=randi([min_value max_value],1,12)

3 Monate ago | 0

How can I change 'y axis' into 'Probability', not the 'number' when I use 'hist(variable)' ?
Is there any sense? Let's suppose I have the following array > data data = 4 3 5 3 5 5 3 4 ...

3 Monate ago | 0

Convert ECG signal waveform into text file
Steps: %load the mat file data=load('mat_file.mat'); %Save the data in txt file dlmwrite('filename.txt',data)

3 Monate ago | 0

How do I create a vector in which the exponet is increasing?
"something like 10^-1, 10^-.9,10^-.8 ..... 10^1" data=10.^(-1:0.1:1)

3 Monate ago | 0

Help on zero padding and understanding of the following example?
"If the zero padding was right then this time should be lower than above two, right?" How? The only difference between section...

3 Monate ago | 0

Extract FFT of every column in frequency domain
A_G_fft = fft(A_G,[],1); Is that : y_data=vibration measured through labVIEW ? for i=1:size(A_G_fft,2) col_data=A_G_fft(:,i)...

3 Monate ago | 0

runge-kutta ode45
Minor modification: Function Code (Save in the same working directory, filename runge_kutta_sis.m) function runge_kutta_sis(f,g...

3 Monate ago | 0

| accepted

For loop to add elements in a vector
% Set the format as per how numbers should appear in Command Window output format shortG Next: x=zeros(15,1); x(1)=50; for...

3 Monate ago | 0

Matching elements from two different matrixes.
a=Shut(Shut>LowerLimit & Shut<UpperLimit) a = 228.6000 304.8000 381.0000 457.2000

3 Monate ago | 0

| accepted

Calling elements of a row vector in Loop function
To save the array or matrix data use cell array. The ( ) allows to save the scalar numeric data only. { } bracket Read about...

3 Monate ago | 0

Problem with try/catch
Have you read the document of try catch Doc fucntion? If any statement in a try block generates an error, program control goes...

3 Monate ago | 0

| accepted

How to center and add margin around image?
You can manually adjust the indices and overlap with the main image. Note that the main image pixel values will be lost in the o...

3 Monate ago | 0

Deleting multiple rows based on a specific condition
Lets say data1 is the column time data diff_data=diff(data1); idx_delete=find(diff_data~=3600)+1; % +1 for compensate with ne...

3 Monate ago | 0

| accepted

How can I plot the curve of SNR in dB versus target range in Km. The following code is producing blank plots.
The plot variables data are scalar (Single data), is there any sense? Like x=4; y=7; plot(x,y); There is a single dot in ...

3 Monate ago | 0

How should I find cubic root?
Here roots https://in.mathworks.com/help/matlab/ref/roots.html

3 Monate ago | 1

How to extract matching coordinates of a stitched and set of original images?
First Case: Pixel to Pixel comparision Simplest is Do the subtraction: The nearly zero or zero in the differenc result signify ...

3 Monate ago | 0

How can I keep peak data
First case: The data is already there (store in the workspace, variable named as pks). You can use the data in proceeding spar...

3 Monate ago | 0

| accepted

i have 2 tables have same number of columns i need to marge without key
result_table=[table1,table1] Make sure that both tables do not have the same column variable names and both have same number of...

3 Monate ago | 0

| accepted

How to save clustergram as fig file using code?
One way: plot(cgo); saveas(gcf,'filename1.png')

3 Monate ago | 0

Creating a matrix with for and input
nnd=input('Enter nnd '); ... geom(i,j)=input('Enter the Value: ')' .. geom

3 Monate ago | 1

| accepted

How to increase axis of stem plots
xlim([0,1400 ]) Do the same for y axis ylim([0 16])

3 Monate ago | 0

Plot a graph from the given table
Graph: Please do learn about line/plot design here simu_result=[34 81 92 94 211 222 233 234 312 336 372]; ana_result=[36 98 ...

3 Monate ago | 0

| accepted

precision problem ? why ans for 10 ^ 5 * 0.0633 is 6.3299e+03
>> 10 ^ 5 * 0.0633 ans = 6.3300e+03 >> format shortG >> 10 ^ 5 * 0.0633 ans = 6330 See the other Format opti...

3 Monate ago | 0

How to visualize a pixel intensity values into an image or a plot?

3 Monate ago | 0

| accepted

Multiple conditions in an IF statement and they are not logical scalar values
Replace x with x(i) in all data, then code execute without any error. More: read about preallocation and logical indexing (MATL...

3 Monate ago | 0

| accepted