Answered
generate filepath for opening file from user selected listbox inputs
Use <https://uk.mathworks.com/help/matlab/ref/sprintf.html |sprintf|> or <https://uk.mathworks.com/help/matlab/ref/compose.html ...

8 years ago | 0

| accepted

Answered
How to apply element wise operation in three matrices
That is covered in the 2nd chapter of the <https://uk.mathworks.com/help/matlab/getting-started-with-matlab.html Getting started...

8 years ago | 0

Answered
I want to find inflections point for point data input?
The inflections points are when the sign of the difference of your |y| changes. So, whichever way you obtain your |y| points (as...

8 years ago | 0

| accepted

Answered
How to add location of dll files to the system path.
_Add the location of the dll files to the system path_ The procedure is described under step 2 of the procedure for version <...

8 years ago | 2

| accepted

Answered
How can I get Hyperlinks' addresses from an Excel file?
Matlab does not have a function to retrieve the target of hyperlinks and the way excel stores hyperlink is a bit convoluted as t...

8 years ago | 1

| accepted

Answered
How can I aggregate rows by a specified start time and time step in a time table?
My suggestion would be to subtract 30 minutes from your datetime column, |retime| it as you've done then add the 30 minutes back...

8 years ago | 0

| accepted

Answered
Row wise indexing of 3d array
Note that in the 2D case you didn't need |find| (which only slows things done): array(array(:, 3) < 0, :) = NaN; For th...

8 years ago | 1

| accepted

Answered
Stack a certain vectors of a matrix vertically
As you've figured out for a 3xN matrix, |a(1:6)'| would work. For an arbitrary sized MxN matrix: reshape(a(:, 1:2), [], 1) ...

8 years ago | 1

| accepted

Answered
Why i get "Unexpected Matlab expression"?
It looks like you haven't really understood how to define functions and how to use them. The signature of a function is ...

8 years ago | 0

| accepted

Answered
How do I open a .orb program from Matlab?
winopen path_to_your_orb_file.orb will launch whatever application is associated with your .orb files on your system.

8 years ago | 1

Answered
Not able to Extract DATA from Row and Column
A much simpler version of your code which should work in R2016b: [data, signals] = tmsread('A359_FIB2_F817.dat'); signam...

8 years ago | 0

| accepted

Answered
How to split data points into new numeric matrixs based on peaks
You may need to tweak the options of |findpeaks| for you data (and finding the minimums by inverting your data may be more relia...

8 years ago | 0

Answered
Problem creating loop using data from imported table/array - how to analyse & save data from each cycle?
Step 1: Wrap all your code for processing one single row into a function that takes your table and the row number as input. E.g....

8 years ago | 0

Answered
Cannot create ActiveX component/ File not found
Can you please use proper formatting (i.e. the *{}Code* button that's above the edit box when you write/edit your question) rath...

8 years ago | 1

| accepted

Answered
Insert Shape and Inserttext in same Image
All functions in matlab work the same way, they never modify the input. Instead they return a copy of the input with the require...

8 years ago | 3

| accepted

Answered
How can I split a 15001 x 3 matrix into four ~3400 x 3 matrices after index found when a drop of >1.8 happens?
Just calculate the distance between your cutoff points and pass that to <https://www.mathworks.com/help/matlab/ref/mat2cell.html...

8 years ago | 1

| accepted

Answered
splitting data to two csv sheet
t = readtable('result - Copy.csv'); flag = t{:, 36} > 2300; writetable(t(flag, :), 'datagreater.xls', 'WriteVariab...

8 years ago | 0

| accepted

Answered
How to extract the data from cell to normal matrix
cat(3, yourcellarray{:}) will result in a 1888x4x600 matrix, if you prefer the 4 columns to be pages (i.e. a 1888x600x4 mat...

8 years ago | 0

Answered
Remove elements from matrix if length below certain number
This part of the code makes no sense to me: ndata (yrs, power_curve) = length(Power_out) idx = find(ndata<8760); Actu...

8 years ago | 0

Answered
Find out the first while pixel from right side ?
The index of the maximum of each row of a binary image is also the index of the first white pixel of each row, thus: newima...

8 years ago | 0

Answered
How to sort rows by the first digit of each number?
Simplest, but probably not the fastest: [~, order] = sort(compose('%d', yourarray(:, 1))); yourarray = yourarray(order, :)...

8 years ago | 0

| accepted

Answered
Marshal double array to MATLAB with IntPtr
I don't think matlab has any way to access directly the unmanaged memory pointed to by the IntPtr as that would normally be wrap...

8 years ago | 0

Answered
How do I get the min and max of an array with this error "In an assignment A(:) = B, the number of elements in A and B must be the same."
_Here is what I have tried with no success_ Perhaps trying to understand how the functions work, particularly with regards to...

8 years ago | 0

| accepted

Answered
Take the average of a repetetive part of an array
mean(yourmatrix(1, 2:2:end))

8 years ago | 0

Answered
How to build this matrix
If I understood correctly, N =[4 2 3 4 5]; M = repmat(1:max(N), numel(N), 1)' <= N %requires R2016b or later If...

8 years ago | 0

Answered
How to traverse a shape edge at constant arc lengths?
@Willem, a simplification of your code. I've not bothered finding the bottom rightmost pixel, starting instead at the top leftmo...

8 years ago | 1

Answered
How to Rotate an image about center vertical axis?
Remember that a images are 2D constructs. They don't have a 3rd dimension and therefore can't be rotated in a 3rd dimension. Wha...

8 years ago | 1

| accepted

Answered
How to save values column by column using a loop of for?
for j = 1:size(temp_range) is not going to do what you want. |size(temp_range)| is |[1, 1828]| and the |:| operator only...

8 years ago | 1

| accepted

Answered
Alternatives for eval when executing functions in matrix
As others have said, using function handles instead of |eval| would be much better. Here is one approach: fns = {@(data) my...

8 years ago | 0

Answered
Creating a password checker using a function
Sounds like homework, so I won't give you the solution. I'll just tell you to have a look at <https://www.mathworks.com/help/mat...

8 years ago | 0

Load more