Answered
load rwb gives error
You're looking for a file called rwb.mat. Once you find it, put it in your current working folder or in a folder that's on the M...

11 mois ago | 1

| accepted

Answered
How to get the x and y coordinates of the each marker in a frame?
I used the Color Thresholder app to get code that segments your image based on the green color of the markers. Then I used regio...

11 mois ago | 0

Answered
Give an unknown number of parameters to feval
Put your parameters in a cell array and then use the syntax that expands a cell array into a comma-separated list: out = feval(...

11 mois ago | 0

| accepted

Answered
Infinite Recursion in own Levenberg-Marquardt Code
I see that korrektur is calling itself recursively. I noticed also that the recursive call appears to be identical to the top-le...

11 mois ago | 1

Answered
Text increments of the x-axis
Sure, you can set the XTicks property of the axes object directly. ax = gca; ax.XTicks = [1 2 3]; A shortcut for this is: xt...

11 mois ago | 0

Answered
imshow doesn't display png image file
Your image is stored in the PNG file as unsigned 16-bit integers. When imshow displays a uint16 image, it uses the unsigned 16-b...

11 mois ago | 1

| accepted

Answered
How to plot particle trajectories and normalise to 0,0 origin?
Here is one way you could do it. Read in the whole Excel file as a table. Then, in a loop, extract the particle data for each tr...

11 mois ago | 1

Answered
From for to While loop
Here is one way to convert a typical MATLAB for loop to a while loop: for i = 1:N ... end i = 1; while i <= N .....

11 mois ago | 0

Answered
Select data from CSV file based on character in position, then read that character and next 2 character, of different read that character and next 3
MATLAB has a number of functions that can automatically read and parse CSV files and return the results in a useful form. Try re...

11 mois ago | 0

Answered
Vectorize "for"-loop in multidimentional array
It is conceivable that the loop might be eliminated with some sub2ind calculations followed by linear indexing, but I would expe...

11 mois ago | 0

Answered
Sort a table in ascending order
The answer would be relatively straightforward, as well as much more efficient, if you would orient your table the other way. Wi...

11 mois ago | 1

| accepted

Answered
How to transform a RGB matrix to a weighted adjacency matrix?
Borys, I tackled your problem and wrote a blog post about it: "Transforming a color image to a weighted adjacency matrix"

12 mois ago | 1

| accepted

Answered
Two colormaps in the same plot
The ColorBar object has an undocumented Colormap property. You can set this property directly to control the colors displayed by...

12 mois ago | 0

| accepted

Answered
Two colormaps in the same plot
You can't display images with two different colormaps within the same axes. As a workaround, you could convert both images from ...

12 mois ago | 0

Answered
How to get rid of deconvolution artifacts?
I think this is because you are performing inverse filtering in the frequency domain, and the blurring function has zeros (or al...

12 mois ago | 0

| accepted

Answered
Function inside for loop not working
One possible explanation for the observed behavior is that the variable hcube does not actually contain a hypercube object when ...

12 mois ago | 0

| accepted

Answered
Extract transformation matrix from image distortion
In your call to fitgeotrans, you have specified that you want a 'polynomial' transformation. This type of transformation is not ...

12 mois ago | 1

| accepted

Answered
Trying add chunk of data to a array
As I understand the code, the fact that ls is empty after the loop implies that either: The while loop body never executes The...

12 mois ago | 1

Answered
Averaging each .STD files
Try this: files = dir("*.Std"); N = numel(files); Date = NaT(0,1); X = zeros(0,3); for k = 1:numel(files) name = str...

12 mois ago | 0

Answered
Averaging each .STD files
[Update: Based on comments from Moses, I submitted another answer to this question. See below.] Try this: files = dir("*.Std")...

12 mois ago | 0

| accepted

Answered
Get edge points from a hough line
I think I understand your question. Here is one possibility. Using the function intline from the DIPUM Toolbox, create a binary...

12 mois ago | 0

| accepted

Answered
Variable Variation over the same range
I am interpreting your question this way: you would like to compute depth_tot_7 for all possible combinations of the different v...

12 mois ago | 0

| accepted

Answered
Combine griddedInterpolants on the same grid
I don't think so. If you have a large number of query points, you might try replacing the Values property of the griddedInterpol...

environ un an ago | 0

| accepted

Answered
How to plot multiple graphs using the 3 variable array values
Here is one way: h = 0:0.008:0.600; rho = 1000; g = 9.81; F = rho*g*L*(0.5*(h).^2); F1 = F/1000; E = 2.1E11; I = ((0.008)...

environ un an ago | 1

| accepted

Answered
Switch-case function problem
First variation: fix the switch and case lines and the indexing into cName. switch color(ind) case 0 ...

environ un an ago | 1

| accepted

Answered
Reversing/Alternatives of function handles
One of the major uses of function handles is for use with functions that operate on other functions. For example, you can use th...

environ un an ago | 1

Answered
How to write a pattern for any different values
T = readtable('matlab_question2.csv'); idx = find(diff(T.x)) idx = 119 314 351 3...

environ un an ago | 1

| accepted

Answered
Row and Column Interpolations
[Update: based on the comment thread below, it appears that "column interpolation" means something different than what I wrote i...

environ un an ago | 0

Answered
SAME VALUE ON EVERY LOOP...
This loop in your code looks suspicious to me: % change material properties of lesion for i=1:indices_1 t_id = elem_e(:);...

environ un an ago | 0

Answered
Vector entry differs from the others
Try using isoutlier and rmoutliers.

environ un an ago | 0

| accepted

Load more