Answered
Split date variable of a table into 3 variables year month and day
"I have table with 3 variables (date, latitude, longitude) where the first variable is the date (dd/mm/yyyy)" % Create example ...

7 years ago | 0

| accepted

Answered
Locating points on the figure that correspond to a specific number on the colormap
In this functional example below, the colorbar value (cval) is set to 140.0 which is within the yellow-green spectrum of the col...

7 years ago | 0

| accepted

Answered
how to search and delete the nth ocurance of a text in a text file
The question is unclear whether the goal is to remove the 2nd line of text or to remove the line(s) with "John is happy". The b...

7 years ago | 1

Answered
How do I create a session that is limited by time
Use a timer object that ends the session after a set duration of time. Here's an overview. Setting up the timer may seem int...

7 years ago | 1

Answered
Use different colormaps for pcolor subplots
You're assigning the colormap to the colorbar. Instead, assign it to the axes and the colorbar will follow suit. ax(1) = sub...

7 years ago | 0

| accepted

Answered
Calculate the distance between matched points
The (x,y) point locations are stored in the "Locations" property of a SURFpoints object. If you are calculating the distance bet...

7 years ago | 0

| accepted

Answered
Getting colors using RGB values w/ scatter3
rgb triplets are normalized between 0:1 https://www.mathworks.com/help/matlab/ref/colorspec.html To convert from decimal code,...

7 years ago | 2

| accepted

Answered
error with changing directory in for loop
Do not use cd(); use fullfile() instead and then feed in the full path of the file to dlmwrite().

7 years ago | 0

| accepted

Answered
Import data from txt file
This uses readtable() to read in your txt file and it uses regexp() with the 'tokens' flag to pull out relevant data. %% Impor...

7 years ago | 1

| accepted

Answered
number to string and char to string in table
% Create fake data T = table((1:5)',('a':'e')','VariableNames', {'col1','col2'}); % Convert num-to-string and char-to-string...

7 years ago | 0

| accepted

Answered
How to extract specific values from a table
If I understand your question correctly, you want to measure the distance each (x,y) coordinate travels between frames. Is that...

7 years ago | 1

| accepted

Answered
How can I sum a specified region of a matrix?
"I want to sum together in the x dimension (20 to 25), and in the y direction (1 to 3) all of the z direction values into one ar...

7 years ago | 0

| accepted

Answered
Change name of figures in figures Tab
Name the figure when it's created CurvaJV = figure('Name','My figure name') or name the figure after it's created set(gcf, 'N...

7 years ago | 3

| accepted

Answered
How can I open two instances of MatLab R2019a on Windows 10?
The machine I'm using now is windows 7 but I can run multiple instances of Matlab r2019a just by opening Matlab twice from All ...

7 years ago | 3

| accepted

Answered
save a single subplot from a .mat file that contains 2x1 subplots
There's nothing wrong with your solution of deleting the unneccessary subplot and resizing the desired one. If you need to do t...

7 years ago | 1

| accepted

Answered
add a cell array in double for one more column in uitable
data = [num2cell(join_all), Units]; % <--- cell array t = uitable(fig,'Data',data);

7 years ago | 0

Answered
Table embedded in uitable ignores ColumnFormat Property
In your table "data2", the second column are not numeric values. They are of class char. class(data2.B{1}) ans = 'char'...

7 years ago | 0

Answered
Control image transparency with a slider- appDesigner
This should get you started. Two images are plotted on top of each other. A slider is added that sets the AlphaData of the to...

7 years ago | 0

| accepted

Answered
How to obtain values from a table in matlab
I'm not sure what you mean by "in order to make a matrix out of it". If this demo doesn't address the problem, please provide a...

7 years ago | 0

| accepted

Submitted


supersizeme
Quickly increase/decrease the font size of all text in a figure by a chosen factor.

7 years ago | 616 downloads |

5.0 / 5
Thumbnail

Answered
"Undefined function or variable 'drawfreehand'." All ROI functions don't work.
You probably don't have the toolbox function on your matlab path. Go to the primary folder where the toolbox functions are stor...

7 years ago | 0

Answered
Save Plot with Minimal White Space (Crop Padding)
"What isn't working: there is no export button as explained on that page..." The demo in the link you provided works well in r2...

7 years ago | 1

| accepted

Answered
What is causing the reshaping error?
As described in the documentation, reshape() the 2nd and 3rd inputs should be integers and when those two integers are multiplie...

7 years ago | 2

| accepted

Answered
checking for dependency in the previous row?
Here's a demo that counts the consecutive rows of "data" (a matrix) that match "key" (a row vector). The variable "consecutiveC...

7 years ago | 1

| accepted

Answered
Figure without border?
fh = figure('Menu','none','ToolBar','none'); ah = axes('Units','Normalize','Position',[0 0 1 1]) ADDENDUM If you're using ax...

7 years ago | 4

| accepted

Answered
converting 3 arrays into matrix
It sounds like you want to horizontally concatenate three column vectors of equal length to form a matrix. If this doesn't demo...

7 years ago | 0

Answered
Create new column in table
Here's a demo that creates a similar table to the table you shared in the png file. It then shows how create indices that find ...

7 years ago | 1

Answered
How to group scattered points that visually belong to lines?
The data you provided was helpful. This should get you started. Check out the documentation for clusterdata() so you can tweak ...

7 years ago | 1

| accepted

Answered
plot with two datetick axis
dpb's solution is a good one. You'll need to make sure the upper and lower tick marks align (use 'XTick' property and xlim). ...

7 years ago | 0

Answered
How can one, out of several xlines in a script be ignored when the x-input value is missing?
You can plot all lines at the same time, skipping empty values. Then you can set the colors of the line. a = input('1: '); b...

7 years ago | 0

| accepted

Load more