Answered
Created Shape file from matrices
shapewrite(Data(:), 'EBB_current.shp');

4 years ago | 1

| accepted

Answered
How to generate all possible permutations of an array having numbers from 1 to 24?
You can use the "odometer" pattern. <https://www.mathworks.com/matlabcentral/answers/602395-different-number-of-for-loops#an...

4 years ago | 0

| accepted

Answered
how to call out single element in matrix
A(1:2:end) + A(2:2:end) + B

4 years ago | 0

| accepted

Answered
Sorting return by dates
[Y, ~] = datevec(TheDateNumbers) ; G = findgroups(Y) ; results = grpstats(YourData, G, "mean"); If you want the retur...

4 years ago | 0

Answered
How to use regex to obtain double values?
Extending to the possibility of fraction values that start with decimal point (with no leading zero), and extending to support n...

4 years ago | 0

| accepted

Answered
Find index of unique pixel values and assign a color to the image. Original image is a grayscale.
cmap = [ 0 0 0 %black 1 0 0 %red 0 1 0 %green 0 0 1 %blue 1 1 1 %white 1 0 1 %fu...

4 years ago | 0

| accepted

Answered
read two excel from different location using readtable
excelName = fullfile(path,excelFile); You construct the fully qualified file name tNew = readtable(excelFile); but you ...

4 years ago | 0

| accepted

Answered
Subtracting one element of an array from all elements of another array
result4d = hit1 - permute(hit2, [3 4 1 2]); This will be 40 x 40 x 40 x 40. Depending on what you are doing, you might also wa...

4 years ago | 0

| accepted

Answered
Function call another function
file2.m can call a function that is defined in file1.m under the following circumstances: the call is to file1() and the functi...

4 years ago | 0

Answered
Opening .mat file after installing Matlab Runtime
https://www.mathworks.com/matlabcentral/fileexchange/51165-matlab-file-association-shortcut-fix can help you change the file ass...

4 years ago | 0

| accepted

Answered
Reading files in .rar archive without unzipping
For the task of getting the list of files in a rar, without extracting them, https://stackoverflow.com/questions/561107/rar-arch...

4 years ago | 0

Answered
How can I know the value of pixel "ROI" in each (RGB) Channel?
createMask [r, c, p] = size(orph); mask_building = createMask(roi_Building, r, c); building_pixels = [op_red(mask_building)...

4 years ago | 1

| accepted

Answered
Possible to prohibit Account Sharing ?
I'm at home, using my phone to access the site. My local IP address was determined by DHCP on my local 192.168.0.x subnet, and m...

4 years ago | 0

Answered
How to make a loop correctly in stages
Use fprintf instead of sprintf

4 years ago | 0

| accepted

Answered
How to solve an equation equal to zero?
There are at least 84 solutions, possibly more. Are you expecting to get a closed form solution that lists each of the angles th...

4 years ago | 0

| accepted

Answered
Can I use the Property Inspector to edit axis labels?
Yes. Click on the figure, then View -> Property Inspector On the figire > Axes that comes up from there, in the TICKS section, ...

4 years ago | 0

Answered
Solve Three non-linear equations for 3 variables system
There are no real solutions. In order for there to be real solutions, some of the log() terms would have to cross zero, but when...

4 years ago | 1

| accepted

Answered
Stack two images on top of each other, where the second one is a spot colour
Assuming a constant stain color, and assuming that a brighter second image means you want more of the stain, then baseimg = im2...

4 years ago | 0

Answered
I'm new to MATLAB and I'm trying to convert the text in a .txt file to binary digits ( 0's and 1's ). How do I do it ?
https://www.mathworks.com/matlabcentral/fileexchange/54716-text-to-binary-and-binary-to-text

4 years ago | 0

| accepted

Answered
Unrecognized function or variable 'RESB'.
fid1=fopen("pffe.mat"); C = textscan(fid1,'%s'); You are opening a .mat file, and trying to read a string from the beginning o...

4 years ago | 0

| accepted

Answered
I want to delete the ROW data from excel by reading Column in the same sheet
xlsread() does not create a table; none of the columns will have column names. You should use readtable tab = readtable('Summar...

4 years ago | 0

| accepted

Answered
Is there a way to automatically extract as many header columns as is available? Each csv file will have a different number of header columns.
app.SelectTestID.Items = header(2:end); will skip the first column and give you the names of the rest.

4 years ago | 0

| accepted

Answered
How to remove the empty spaces from imported text file?
tline = 'no 1 -5 21 -5'; % imported text example tt = regexp(tline, '\s+', 'split'...

4 years ago | 0

| accepted

Answered
how to save a table to .asc file
writetable(tab_L_e, 'L_e.asc', 'WriteVariableNames', false, 'Delimiter', ' ', 'Filetype', 'text')

4 years ago | 0

| accepted

Answered
export the script from already made GUI
If the GUI is written in MATLAB, then the source code is the "script", and if you want to extend the GUI to be able to do someth...

4 years ago | 0

Answered
Plot with break in curve
data = [%% x y 0.0000 -963.0477 0.0043 -961.9818 0.0085 -960.8602 0.0128 -959.6834 0.0171 -958...

4 years ago | 0

| accepted

Answered
problem performing multiple, independent tasks simultaneously in parfor
That code that assigns to output{n} will not fail due to different output types. All three of the outputs (for the code you post...

4 years ago | 0

| accepted

Answered
Could anyone please explain why MATLAB doesn't return answer to this code?
uu = fit(tt' , u0' , 'linearinterp') linear interpolants do not have continuous derivatives, so using linear interpolant violat...

4 years ago | 0

| accepted

Answered
how to how ylim in addaxis
After you call addaxes() the current axes is left set to the axes just created. You can then just call ylim() at that point.

4 years ago | 0

| accepted

Answered
hiding axes in a gui.
You can set any line or surface or even complete axes to 'visible', 'off' What difficulty did you encounter when you tried to...

4 years ago | 0

Load more