Answered

Print an array of coordinates with 2 Arrays of Varriables.

Simple in Matlab X = [150 200 300 500]'; Y = [300 500 800 300]'; coords = [X,Y] coords = 150 300 200 500 ...

Print an array of coordinates with 2 Arrays of Varriables.

Simple in Matlab X = [150 200 300 500]'; Y = [300 500 800 300]'; coords = [X,Y] coords = 150 300 200 500 ...

10 days ago | 0

| accepted

Answered

Matlab Coder support for object arrays

I believe this isn't possible. I think you have to use a cell array of the objects as a work around. See this answer: Limitati...

Matlab Coder support for object arrays

I believe this isn't possible. I think you have to use a cell array of the objects as a work around. See this answer: Limitati...

10 days ago | 0

Question

System Object Variable Size Tuneable Properties

I am new to system objects, but need to develop one to do some stream processing of incoming data. Part of the algorithm I am de...

1 month ago | 1 answer | 0

Answered

How to 3D plot a circle with radius of 1 in x y and sine wave in z?

Try this: %Position of center of chip in 3D space x0 = 1; y0 = 1; z0 = 1; r = 1;%Radius of chip d_theta = 2*pi/60; %Diff...

How to 3D plot a circle with radius of 1 in x y and sine wave in z?

Try this: %Position of center of chip in 3D space x0 = 1; y0 = 1; z0 = 1; r = 1;%Radius of chip d_theta = 2*pi/60; %Diff...

2 months ago | 1

| accepted

Answered

The 'matlab.mixin.Copyable' class does not support code generation.

I got around this by creating a 'copy' method for my class. Here is a simple example. classdef myobj < handle % used to be mat...

The 'matlab.mixin.Copyable' class does not support code generation.

I got around this by creating a 'copy' method for my class. Here is a simple example. classdef myobj < handle % used to be mat...

3 months ago | 0

Question

Custom object class array initilization within Simulink Matlab Function Block

The summary of my question is I need know how to preallocate an array of custom objects in a way that is compatible with Simulin...

3 months ago | 1 answer | 0

Answered

Create a new array by summing the columns of old array

By calling up the matrix elements using their linear indices and skipping by the number of rows in your matrix you can do what y...

Create a new array by summing the columns of old array

By calling up the matrix elements using their linear indices and skipping by the number of rows in your matrix you can do what y...

5 months ago | 0

Answered

Adding transparency to a contour plot

My understanding is that this isn't supported. In the past I have done a surface plot, changed the transparancy, and then change...

Adding transparency to a contour plot

My understanding is that this isn't supported. In the past I have done a surface plot, changed the transparancy, and then change...

6 months ago | 0

Answered

Make transparent contourf plot

One work around is to plot a surface and change the view. Here is an example data = rand(100,100); surf(data,'EdgeColor','None...

Make transparent contourf plot

One work around is to plot a surface and change the view. Here is an example data = rand(100,100); surf(data,'EdgeColor','None...

6 months ago | 0

Question

Livescipt Potential Bug: Can't add code, sections, etc. Only text.

I am running Matlab R2020b on a macOS Catalina. I have had this problem a couple of times now with my Livescripts. I will be wor...

7 months ago | 1 answer | 0

Question

Arrays from object properties within object arrays

I want to know if there is an efficent way to extract an array of values from properties of objects in an object array. Let's sa...

1 year ago | 1 answer | 0

Question

Live Script Compatibility with Matlab Mobile

I have a live script I uploaded to Matlab Online and I can see it in Matlab mobile, but it is grayed out and I can't run it. Thi...

1 year ago | 1 answer | 0

Answered

Why does the app not resize properly for different screen resolutions in App Designer?

I know this isn't exactly what you are looking for, but I was having a similar problem and recently discovered the 'Scrollable' ...

Why does the app not resize properly for different screen resolutions in App Designer?

I know this isn't exactly what you are looking for, but I was having a similar problem and recently discovered the 'Scrollable' ...

2 years ago | 3

Question

App Designer Reflow of Items within Tabs

I have a tab group that is my highest level of organization in my app. Within each tab, I have a series of panels that I would l...

2 years ago | 2 answers | 1

Question

Performance difference for plotting direction?

I found a very odd behavior that I'd like some help on. When plotting large vectors in matlab, there appears to be a MAJOR perfo...

2 years ago | 0 answers | 0

Answered

Unable to create a standalone application.

I had this problem as well with the following error: Update resource failed: 110 Failed to create the web based instal...

Unable to create a standalone application.

I had this problem as well with the following error: Update resource failed: 110 Failed to create the web based instal...

2 years ago | 0

Answered

Read UDP packets asynchronously from Simulink in MATLAB

I belive you need to use the function handle for myfunction u = udp('127.0.0.1', 25000); u.ReadAsyncMode = 'continuous'; fope...

Read UDP packets asynchronously from Simulink in MATLAB

I belive you need to use the function handle for myfunction u = udp('127.0.0.1', 25000); u.ReadAsyncMode = 'continuous'; fope...

2 years ago | 0

Question

Potential Bug with App Designed to Create Subplots of Polar Axes?

I am trying to programmatically generate a set of polar subplots in my Matlab application. It seems to work almost perfectly, bu...

2 years ago | 0 answers | 0

Answered

Add-On Explorer currently unavailable

I was having a problem with this on my Mac running R2018b. I was able to get to the 'Add-On Explorer' by: 1. Clicking the 'Add-...

Add-On Explorer currently unavailable

I was having a problem with this on my Mac running R2018b. I was able to get to the 'Add-On Explorer' by: 1. Clicking the 'Add-...

2 years ago | 0

Question

How do I control/view colorbar axis width?

I need to know how to read the width of a colorbar including its axis labels. I am trying to configure the position of my colorb...

2 years ago | 1 answer | 1

Question

Can you set a plot property as an equation?

I would like to set up a property as an equation. This could apply to a figure, axis, etc. property, but I am specifically inter...

3 years ago | 2 answers | 0

Question

Problems with scipy package import when using mwpython

I have created a Python package with MATLAB Compiler SDK (R2018a). I have been able to include that package and execute function...

3 years ago | 0 answers | 0

Question

How does Python package generated in Matlab allow for "import matlab"?

I am developing a Python package from my Matlab functions using Matlab Compiler SDK within R2018a. I used this <https://www.math...

3 years ago | 0 answers | 0

Question

Problem with contourf plotting

I seem to have a problem with the contourf function. The data I am plotting (see attached) seems to plot fine with the 'surf' co...

6 years ago | 1 answer | 0

Answered

Increase grid resolution when printing/saving eps

I figured this out myself. Download fixPSlinestyle.m from Matlab File exchange here. http://www.mathworks.com/matlabcentral...

Increase grid resolution when printing/saving eps

I figured this out myself. Download fixPSlinestyle.m from Matlab File exchange here. http://www.mathworks.com/matlabcentral...

8 years ago | 0

| accepted

Question

Increase grid resolution when printing/saving eps

I am trying to save eps graphics for insertion into Latex documents. To do this I scale the figure using: set(figure_handle,...

8 years ago | 1 answer | 0