Answered
How to save to a csv file?
Try the following: writetable(Dot1.Stats, 'sq_Dot1.csv','WriteMode','Append');

4 months ago | 0

| accepted

Answered
Plotting a heatmap with collected data
Use function pcolor is another option. clear;clc; im = imread('map.png'); [Ny,Nx,Nc] = size(im); f = figure(1); ax = gca; ...

4 months ago | 1

| accepted

Answered
Transform table to another format
Use function stack is another option. clear;clc; Headers = ["Fund1";"Fund2";"Fund3"]; Fund1 = [1;0.1;0.2]; Fund2 = [0.3;1;0....

4 months ago | 1

| accepted

Answered
Heatmap - multiple values in same cell
Not writing data to the same cell, but writing to separate cells as a workaround: Manually change the YDisplayLabel to let the ...

4 months ago | 0

Answered
Fit curve edge and determine curvature
Use function polyfit with higher degree. data = imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/918279/5...

4 months ago | 0

Answered
how to copy a specific files from one folder to another folder?
Try the following: filePattern = fullfile('E:\SNR-Dataset\DATA-11-time\time-data-training\8PSK\8PSK', '*.mat'); dest = 'E:\SNR...

4 months ago | 0

Answered
Greetings dear friends, I am trying to change some variables in the indicated code to get the waves that can be seen in the 3D graph, thanks for your help!
Better to check the limits to generate your sample figure. Looks like from -3pi to 3pi as shown below: As the limits goes to in...

4 months ago | 0

| accepted

Answered
intersection of 3d convex hull
Have a quick look on the function and I suspect you should use transpose of V{1} and V{2} as the input arguments S=(intersectio...

4 months ago | 0

| accepted

Answered
Does regionprops function work in Matlab App designer
You are extracting something less than or equals to the lower bound (example < 100), and then extracting the resulting image wit...

4 months ago | 0

| accepted

Answered
How to read Harvard Medical MRI images which are in .gif format?
Save it as png file and open it data = imread('1.png'); imshow(data)

4 months ago | 0

Answered
how to store each for loop values in multidimensional matrix?
Try to use a cell array to store the result as follows: zn = 3; % no. of planes zmax = 200; % z max zmin = 100; % z min zA =...

4 months ago | 0

| accepted

Answered
How a table columns are named using MATALB
Something like the following may be similar to what you want. clear; clc; combine_vector = randi(10,5,10); Title1 = array2tab...

4 months ago | 0

| accepted

Answered
Inverse of C matrix is Inf when it shouldn't be. How do I fix the matrix? The formula to calculate C is correct. May be an issue with input c.
I have no idea about the details of the calculation but spot some of the issues stated as follows: clc; clear all; close all N...

4 months ago | 0

| accepted

Answered
Mesh and Surf graphics problem
You redo the meshgrid and re-sample the data via griddata may be the cause of your problem. Just remove all additional meshgrid...

4 months ago | 1

| accepted

Answered
Drawing lines with a handle
Note that link_colors is one of the input argument in function draw_links, so there is no need to define it inside the function ...

4 months ago | 0

| accepted

Answered
Assign a colormap to an array to plot with the nsidepoly function.
You may try the following: clear; clc; coord = [1 1;4 4;7 7;10 10]; a = 0.5; b = 1.5; r = (b-a).*rand(4, 1) + a; nLevel = ...

4 months ago | 0

| accepted

Answered
How do I create a table containing a character array if it has only one row?
Time = [1];Force = [12];ID = {'ab'}; T = table(Time,Force,ID) Actually, the error message tells you the solution. Time = [1];...

4 months ago | 0

| accepted

Answered
Change xticks intervals in heatmap
Refer to this link <https://www.mathworks.com/matlabcentral/answers/513971-how-can-i-modify-the-x-and-y-axis-tick-labels-for-a-h...

4 months ago | 0

| accepted

Answered
How to normalize data between 0 and 1
Another option is use function <https://www.mathworks.com/help/matlab/ref/rescale.html rescale>

4 months ago | 1

Answered
How to display R, G, B colours of an individual pixel in an image?
Use function <https://www.mathworks.com/help/images/ref/imsplit.html imsplit> [R,G,B] = imsplit(I)

4 months ago | 0

Answered
Matlab activation function list
Check this ink: MATLAB Functions

4 months ago | 0

Answered
Error Running Initialization Code. The error is as shown in the picture where it states it is unable to change current folder as the folder is nonexistent or not a folder
Would you please check the current folder in the Current Folder toolbar. Or type pwd to see what is your cuurent foloder. I su...

4 months ago | 1

| accepted

Answered
Index exceeds matrix dimensions.
Check the following first: In the following loop, you assign something to variable adjb if g(i,j)==k. However, if g(i,j)~=k, th...

4 months ago | 0

Answered
why I fully lose dicom image after adding noise to it?
imnoise expects pixel values of data type double and single to be in the range [0, 1]. You can use the rescale function to adjus...

4 months ago | 0

| accepted

Answered
Two ROI in one image and calculate mean for each ROI
You may try the following: clear; clc; rawdata = imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/910580...

4 months ago | 1

| accepted

Answered
Use same scale for several quiver3 plots on a single figure
Adjust the scale manually for the combined quiver3 plot. However, since the residual ones are 100X shorter than the delta ones...

4 months ago | 0

| accepted

Answered
About "ismember" function
If you would like to use function ismember, then you may try the following: value = arrayfun(@(x) PD.Var2(ismember(PD.Var1,x)),...

4 months ago | 0

Answered
Is there a way to leave a blank space using the tiledlayout function?
Below shows an example where the plot appears on position 1,2,6,7,11 & 12 for a 3x4 layout. tiledlayout(3,4,'TileSpacing','comp...

4 months ago | 1

| accepted

Answered
Colour bar isn't correct for subplot contour
Below is only a workaround to use each colorbar for each subplot and finally hidden them. %Preamble clc clear all clear work...

4 months ago | 0

| accepted

Load more