I've been using Matlab since 1994.

Question

add boldface text to text area

How do I add a new line to text area that is bold-face, while not having all lines bold-face? app.TextArea1.Value = [{sprintf('...

3 months ago | 1 answer | 1

Question

get a field value from all elements of a structure

If I have a structure s with a field A(1) and A(2) and A(3), where each of these A fields has a field B, I can type: s = struct...

4 months ago | 1 answer | 0

Question

UIAxes plot vs Axes plot in App

I'm somewhat new to App Designer, but have made lots of programmatic GUIs. I have an App GUI that creates plots. My plots use ...

5 months ago | 1 answer | 1

Answered

Log scale for radius axis in a polar plot

Here is how I created a logarithmic RAxis for altitudes: hAx2 = polaraxes(hFig,'OuterPosition',AxOutPos2,'ThetaAxis...

Log scale for radius axis in a polar plot

Here is how I created a logarithmic RAxis for altitudes: hAx2 = polaraxes(hFig,'OuterPosition',AxOutPos2,'ThetaAxis...

7 months ago | 0

Answered

UITable with both char and numeric data

I think I figured it out. The Data property must be Cell array which can be a mixture of data types: data = {'text1', 4e6, 'fi...

UITable with both char and numeric data

I think I figured it out. The Data property must be Cell array which can be a mixture of data types: data = {'text1', 4e6, 'fi...

9 months ago | 0

| accepted

Question

UITable with both char and numeric data

I know you can have a UITable with all cell array data, and you can have one with all numeric data, but I want a mix of both in ...

9 months ago | 1 answer | 0

Question

Change or Add to greyed-out areas in App Designer

In the Design View, when I add a UI control, such as a Tab Group, it auto adds code such as: % Create TabGroup app.TabGroup = ...

10 months ago | 1 answer | 0

Question

rotate polygon in geographic axes

I have a n-sided polygon with vertices as (lat,lon) coordinates. I plot this on a geographic axes. I want to rotate it and end...

1 year ago | 1 answer | 0

Answered

Overlay polygon on geographic axes

What if you had (lat,lon) coordinates of the polygon you wanted to overlay? It looks like your x and y coordinates might be no...

Overlay polygon on geographic axes

What if you had (lat,lon) coordinates of the polygon you wanted to overlay? It looks like your x and y coordinates might be no...

1 year ago | 6

Question

find() not as expected

I have a numeric 2D array called A with time in the first column (from zero to 2 minutes every 0.01 seconds). I want to find th...

2 years ago | 1 answer | 0

Answered

Creating a multidimensional table

Works great, thanks. When I plot all thousand tables, each having thousands of rows and multiple columns, I couldn't do it with...

Creating a multidimensional table

Works great, thanks. When I plot all thousand tables, each having thousands of rows and multiple columns, I couldn't do it with...

2 years ago | 0

Answered

Creating a multidimensional table

T = table(T1,T2,T3) only works if all three tables have exactly the same number of columns AND exactly the same number of rows, ...

Creating a multidimensional table

T = table(T1,T2,T3) only works if all three tables have exactly the same number of columns AND exactly the same number of rows, ...

2 years ago | 0

Answered

How do I plot points on a map in matlab?

geoshow(LAT, LON, 'DisplayType', 'Point', 'Marker', '+', 'Color', 'red');

How do I plot points on a map in matlab?

geoshow(LAT, LON, 'DisplayType', 'Point', 'Marker', '+', 'Color', 'red');

2 years ago | 4

Answered

Why we can't directly delete Legend entries?

What if you didn't want to delete the curves/lines from the plot, but only wanted certain things deleted from the legend?

Why we can't directly delete Legend entries?

What if you didn't want to delete the curves/lines from the plot, but only wanted certain things deleted from the legend?

2 years ago | 0

Question

Why isn't 95.77-95.68 = exactly 0.09?

I guess I expected 95.77-95.68 to be exactly 0.09, just as I expected 3*(1/3) to be 0.9999999999, but I was wrong on both! More...

3 years ago | 1 answer | 0

Solved

Pernicious Anniversary Problem

Since Cody is 5 years old, it's pernicious. A <http://rosettacode.org/wiki/Pernicious_numbers Pernicious number> is an integer w...

3 years ago

Solved

Basic electricity in a dry situation

⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ &#...

3 years ago

Solved

Energy of a photon

*⚛ ☢ ⚛ ☢ ⚛ ☢ ⚛* Given the frequency F of a photon in giga hertz. Find energy E of this...

3 years ago

Solved

How to subtract?

*± ± ± ± ± ± ± ± ± ± ±* * Imagine you need to subtract one...

3 years ago

Solved

Pizza!

Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

5 years ago

Question

Best method in getting a figure from R2015 to MS Word

Before R2014b, I used to select Edit->Copy Figure in Matlab and then Ctrl-V in Word to paste (with the Copy Option being "Preser...

6 years ago | 1 answer | 0