Published


Convert between RGB and Color Names
Will‘s pick this week is Convert between RGB and Color Names by Stephen Cobeldick. A fairly common challenge I encounter is...

4 months ago

Thumbnail

Answered
How to show an image using the stored vector (matrix) as a variable in the report generator
You could use: imshow(loadedimage) add(R, Figure()) In general I'd stick with Image even if though requires imwriting your im...

4 months ago | 1

| accepted

Answered
Is it possible to organize parfor outputs based on the "thread" number?
parfor ii = 1:10 t = getCurrentTask disp(t.ID) end

4 months ago | 0

Answered
How to make a graph with nodes and edges
What version of MATLAB are you using? graph() was introduced in R2015b

4 months ago | 0

| accepted

Answered
turning legend off in xline function
myxline = xline(10,'r',"Hello") myxline.Label = "" myxline.DisplayName = "" Disable the label and/or DisplayName.

4 months ago | 1

Published


MATLAB Projects
Sean‘s pick this week is MATLAB Project File by Dmitry Ratner and the new Projects functionality in base MATLAB added to...

4 months ago

Thumbnail

Answered
How can I average datetimes of my array?
Look at the retime() function for a timetable.

4 months ago | 0

| accepted

Published


MATLAB Grader Test (Assessment) Generator
Jiro‘s Pick this week is MATLAB Grader Test Generator by Robin T. Bye.MATLAB Grader is a web service product available for...

4 months ago

Thumbnail

Answered
How to remove artifact (“shadow” causing blurry areas) from 3D CT-data
I'd use a multipass set of global and adaptive thresholds. You can adjust the sensitivities and thresholds as necessary. I = i...

4 months ago | 0

Published


Do You Find Yourself Searching for Connection (in Simulink)?
Greg’s pick this week is slQuery by Robert Rasche. Robert has created an impressive mechanism for finding and operating on...

5 months ago

Thumbnail

Answered
How to replace MATLABPOOL to PARPOOL ?
p = gcp; p.NumWorkers Will tell you the number of workers in the pool rather than matlabpool('size')

5 months ago | 0

| accepted

Answered
MAPPING TOOLBOX LAT/LON vectors are not strictly monotonically increasing, hence zi = interp2(LON,LAT,GAIN,loni,lati) ; gives me errors
Look at geointerp which properly projects lat/lon onto a plane so the interpolation values make sense.

5 months ago | 0

Published


Connectionist Temporal Classification Layer
Sean‘s pick this week is Connectionist Temporal Classification Layer by SergeyLA. A Custom Deep Learning Layer in the...

5 months ago

Thumbnail

Answered
Deep Q-learning
https://www.mathworks.com/help/releases/R2019a/reinforcement-learning/ug/q-agents.html

5 months ago | 1

Answered
How to access itemprop = "name" from within a data structure in HTML code using Matlab?
Using htmlTree, this is trivial: tree = htmlTree(fileread('yourfile.html')) div = tree.findElement('div') item = div.getAtt...

5 months ago | 0

Answered
Classdef get methods: allowing get indexing into an array of length either (1x1) or (Nx1).
You could GetAccess Protect the A property and then use a method instead of straight property reference. methods function a ...

5 months ago | 0

Published


Multi-column legend, revisited
Jiro‘s Pick this week is the NumColumns property of the legend function, new as of R2018a.This week, R2019a was...

5 months ago

Thumbnail

Answered
Given an instance of a class (without knowing class name), how to call the constructor?
Might you be interested in inheriting from matlab.mixin.Copyable which gives you a copy method?

5 months ago | 0

| accepted

Answered
AlphaShape: incorrect geometry
How about pointlocation?

5 months ago | 0

| accepted

Answered
How do i copy the content of a folder into another folder.
doc copyfile doc dir doc fullfile Use dir to get the file name and current path, fullfile to build the old and new full file ...

5 months ago | 0

| accepted

Answered
How to add a hyperlink of a pdf file within Simulink?
Insert a text box, a link, and then use MATLAB code with open('your_pdf_file.pdf')

5 months ago | 0

| accepted

Published


World Bank API Access
Sean‘s pick this week is World Bank API Access by Kim9091. Last year, I blogged about writing your own function...

5 months ago

Thumbnail

Answered
Undefined variable "vision" or class "vision.HoughTransform".
Do you have the computer vision system toolbox installed and licensed? ver

6 months ago | 0

Published


Get your key press
Jiro‘s pick this week is getkey by Jos.Here’s an entry from a long-time user. Honestly speaking, I’m surprised why this...

6 months ago

Thumbnail

Answered
Can you detect when a title is added to a plot?
If the axes already exists, this seems to work ax = axes addlistener(ax.Title,'String','PostSet',@(~, ~)disp('hi')) title('He...

6 months ago | 0

Answered
From char to timetable
How are you creating the char? Reading it from a file? If you're reading it from a file, then look at importing with fixed wid...

6 months ago | 0

| accepted

Published


HDL Coder Tutorial and Evaluation Reference Guide
Curie’s pick of the week is – actually, make that plural! My picks are the HDL Coder Tutorial and HDL Coder Evaluation...

6 months ago

Thumbnail

Answered
MQTT subscribe callback function not executed in AppDesigner
(This is a guess) When the function exits, the mObj and mySub are destroyed. Set them to be properties of the app (add propert...

6 months ago | 1

| accepted

Answered
Data Analysis advance filtering
Tested in R2018b. May need to convert strings to cellstrs in older releases. %% Sample data Data = array2table(rand(2,200))...

6 months ago | 0

Published


Beating (Cartoon) Heart
Sean‘s pick this week is Beating (cartoon) Heart by Nathaniel Barlow. In the spirit of celebrating Valentine’s day with...

6 months ago

Thumbnail

Load more