AndresVar
Followers: 0 Following: 0
Programming Languages:
Python, C, MATLAB
Spoken Languages:
English, Spanish
Python, C, MATLAB
Spoken Languages:
English, Spanish
Feeds
已解决
Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...
1 year 前
已解决
Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.
1 year 前
已解决
Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...
1 year 前
已解决
Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...
1 year 前
已解决
Get the length of a given vector
Given a vector x, the output y should equal the length of x.
1 year 前
已解决
Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...
1 year 前
已解决
Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...
1 year 前
已回答
Backtrack iteration for loop
i think matlab for loop doesn't allow changing the iterator, you can use while loop instead.
Backtrack iteration for loop
i think matlab for loop doesn't allow changing the iterator, you can use while loop instead.
2 years 前 | 1
| 已接受
已回答
how to know 'y' values of points when we only know 'x' values?
yes a perpendicular line has a negative inverse slope so if red lines has slope m1=(dy/dx)_red, then the black line has slope...
how to know 'y' values of points when we only know 'x' values?
yes a perpendicular line has a negative inverse slope so if red lines has slope m1=(dy/dx)_red, then the black line has slope...
2 years 前 | 0
已回答
How to keep Matlab from messing up the formating in my excel file?
You can writetable and then fix the column width with an actxserver fullFilename = fullfile(pwd,'mysheet.xlsx'); % or whatever ...
How to keep Matlab from messing up the formating in my excel file?
You can writetable and then fix the column width with an actxserver fullFilename = fullfile(pwd,'mysheet.xlsx'); % or whatever ...
2 years 前 | 1
| 已接受
已回答
Only abnormally large outlier values are removed, not small ones
your data has zeros that make the mean closer to the small peak. you should ignore the zeros, maybe you can throw them away OR ...
Only abnormally large outlier values are removed, not small ones
your data has zeros that make the mean closer to the small peak. you should ignore the zeros, maybe you can throw them away OR ...
2 years 前 | 0
已回答
How to integrate the area below the peak when I dont have function of the peak?
Use conditional indexing to define the limits of extent for the peak. clear load("AR_data.mat") % remove nan values (why is...
How to integrate the area below the peak when I dont have function of the peak?
Use conditional indexing to define the limits of extent for the peak. clear load("AR_data.mat") % remove nan values (why is...
2 years 前 | 1
| 已接受
已回答
How to properly color a surface in two different colours using surf function?
How about just 1 surface but you tweak the colormap x = linspace(-0.5, 0.5, 21); [X, Y] = meshgrid(x, x); Z = -2 * (cos(2*pi*...
How to properly color a surface in two different colours using surf function?
How about just 1 surface but you tweak the colormap x = linspace(-0.5, 0.5, 21); [X, Y] = meshgrid(x, x); Z = -2 * (cos(2*pi*...
2 years 前 | 1
| 已接受
已回答
Importing table from text file and matching header to column
I tried the import tool: Import data from file - MATLAB (mathworks.com) The code it generated for your data did not look as pre...
Importing table from text file and matching header to column
I tried the import tool: Import data from file - MATLAB (mathworks.com) The code it generated for your data did not look as pre...
2 years 前 | 2
| 已接受
已回答
A rounding problem that falls under ceil and round
How about x=[0 20 50 100 101 900 901 1234]; % test numbers y = ceil(x/100)*100
A rounding problem that falls under ceil and round
How about x=[0 20 50 100 101 900 901 1234]; % test numbers y = ceil(x/100)*100
2 years 前 | 0
| 已接受
已回答
translating each image column a distance according to the fitted curve
You can try circshift to shift the column vectors. But the result is not so good (i think), for example the length of the object...
translating each image column a distance according to the fitted curve
You can try circshift to shift the column vectors. But the result is not so good (i think), for example the length of the object...
2 years 前 | 0
已回答
Can someone help me to remove small region area with regionprops?
try bwareaopen: Remove small objects from binary image - MATLAB bwareaopen (mathworks.com) There is an example in the documenta...
Can someone help me to remove small region area with regionprops?
try bwareaopen: Remove small objects from binary image - MATLAB bwareaopen (mathworks.com) There is an example in the documenta...
2 years 前 | 0
| 已接受
已回答
Performing the transform on the below logic
Make a grid, evaluate the function and use fft2 to get the spatial spectrum. Here is an example, note function might be differe...
Performing the transform on the below logic
Make a grid, evaluate the function and use fft2 to get the spatial spectrum. Here is an example, note function might be differe...
2 years 前 | 0
| 已接受
已回答
Fitting multiple data sets to single curve in least square sense
x1,x2,x3 are column vectors that you combined into a matrix, so then y was evaluated to a matrix also. nlinfit expects vectors ...
Fitting multiple data sets to single curve in least square sense
x1,x2,x3 are column vectors that you combined into a matrix, so then y was evaluated to a matrix also. nlinfit expects vectors ...
2 years 前 | 0
已回答
Vectorizing for loop for faster processing
You defined bin edges so you can try discretize: Group data into bins or categories - MATLAB discretize (mathworks.com) idx=1:1...
Vectorizing for loop for faster processing
You defined bin edges so you can try discretize: Group data into bins or categories - MATLAB discretize (mathworks.com) idx=1:1...
2 years 前 | 0
| 已接受
已回答
concatenate structures inside structures
since each frame has different sized structure array maybe you can use a cell for each frame clear; % example positions for ...
concatenate structures inside structures
since each frame has different sized structure array maybe you can use a cell for each frame clear; % example positions for ...
2 years 前 | 1
已回答
overlap ylabel with values axis
many ways to modify the label position: modify position property, if in latex add \quad, etc the easy way is to control the hor...
overlap ylabel with values axis
many ways to modify the label position: modify position property, if in latex add \quad, etc the easy way is to control the hor...
2 years 前 | 0
已回答
Create a patch which includes all the histogram profiles
If you can use uniform bin edges for all series then it can be simplified Here it is plotting white over the another color. You...
Create a patch which includes all the histogram profiles
If you can use uniform bin edges for all series then it can be simplified Here it is plotting white over the another color. You...
2 years 前 | 0
| 已接受
已回答
How to save each row as image in MATLAB
Edit: use rescale the entire dataset instead of each row. Edit: note in the example I put padding on the data to shape it into ...
How to save each row as image in MATLAB
Edit: use rescale the entire dataset instead of each row. Edit: note in the example I put padding on the data to shape it into ...
2 years 前 | 0
| 已接受
已回答
Finding data on specific point from large set data
Import data (e.g. right click file -> Import data... -> generate code) Use scattered interpolant: Interpolating Scattered Data...
Finding data on specific point from large set data
Import data (e.g. right click file -> Import data... -> generate code) Use scattered interpolant: Interpolating Scattered Data...
2 years 前 | 1
| 已接受