Answered
from IDL to Matlab
|uigetdir, uigetfile, uiputfile| Some combination of those.

8 years ago | 1

| accepted

Answered
Suspicious value in vpa
vpa('1.1e50', 60) ans = 110000000000000000000000000000000000000000000000000.0 When you say 1.1e50 not in single quotes, ...

8 years ago | 2

| accepted

Answered
Simulink, repeat a model
Use |sim| to programmatically run the model with the other excel sheets. You can use set_param to modify the source Excel sheet...

8 years ago | 0

Answered
Big data question. how to generate a variable efficiently and aggregate
Use the table |join| function. <https://www.mathworks.com/help/releases/R2017a/matlab/ref/join.html>

8 years ago | 0

| accepted

Answered
anonymous function for if-else statements
In R2016b and newer you can have subfunctions in scripts as well as functions. I would recommend using them instead.

8 years ago | 2

Answered
Change table variable data type
Change it before reading it in by modifying the options passed to readtable. <https://www.mathworks.com/help/releases/R2017a/...

8 years ago | 6

| accepted

Answered
[Simulink] How to set array in mask and assign first index value to a block
Just index into the mask parameter: <</matlabcentral/answers/uploaded_files/82347/2017-07-07_11-44-18.png>>

8 years ago | 0

| accepted

Answered
Is it possible to create a CNN with real output?
Use a regressionLayer at the end: <https://www.mathworks.com/help/releases/R2017a/nnet/ref/regressionlayer.html> Note this...

8 years ago | 0

| accepted

Answered
I want to make PPT using actxserver. I have 6 graph. When I am running the code all 6 graphs are pasted to 6 slides. I have saved presentation through code. Now when I open the presentation, last figure is copied in all slides.
Have you looked at using the report generator to generate the slides rather than activex? <https://www.mathworks.com/help/rel...

8 years ago | 0

Answered
USB webcam can't be recognized in imaqtool
Make sure you also install the OS Generic video support package.

8 years ago | 1

| accepted

Answered
Help reformatting table for a Faster RCNN
HeadOnly.Head = num2cell(HeadOnly.Head,2) I think.

8 years ago | 0

| accepted

Answered
How MATLAB divide the number of iterations of "parfor" on the workers of one computer?
The slide is just an illustration to demonstrate the load balancing idea. Check out this blog post: <http://blogs.mathwork...

8 years ago | 0

Answered
Automatically generate new matrices or arrays from unique values in matrix
B = accumarray(a(:,1),a(:,2),[],@(x){x}) Using it directly like this, the index will be the leading number. Why you would ...

8 years ago | 3

| accepted

Answered
Calculate min/max of matrix column
cellfun(@max, Hours(:,2))

8 years ago | 0

Answered
How does MATLAB Compiler handle warning and error message commands?
You can launch the app from a console and then errors/warnings/displays will show up in it.

8 years ago | 0

Answered
count the number of hours in a day (multiple values per hour)
M = [0 0 1 2 2 2 2 3 3 23 0 1 1 2 2 2 3 3 3 3 23]; M = M(:); % columns are better daybreaks = sign([diff(M); -5])==-1; % whe...

8 years ago | 0

| accepted

Answered
Is there a smarter way to record sound while playing sound?
I would use this. <https://www.mathworks.com/help/audio/ref/audioplayerrecorder-class.html>

9 years ago | 0

Answered
How can i report the transition between two states (Description) in report generator?
<https://www.mathworks.com/help/rptgenext/ug/stateflowhierarchy.html> perhaps? Or run: >>web(fullfile(docroot, 'rptgenex...

9 years ago | 0

Answered
Start/Read Timer blocks in Simevents within Matlab R2017a?
If you look in "Design Patterns" there is a time stamp entity one that shows how to stamp the entity at creation. At the end yo...

9 years ago | 1

| accepted

Answered
Does Simulink Real-Time supports only desktop CPUs
Hi, I think you're confusing <https://www.mathworks.com/products/simulink-desktop-real-time.html Simulink Desktop Real-Time> ...

9 years ago | 0

Answered
Fast method count unique variables
I'd suspect a simple loop over columns with |ismember| would be very fast. *EDIT from Comment Clarification* tic nc...

9 years ago | 1

Answered
Unable to get less time for PARFOR loop than FOR loop on the system which has Tesla K20c GPU card in it .
You're transfering a ton of data X(:,i),Y(:,i),Zindex and getting back a bunch too, relative to the very fast operation which is...

9 years ago | 0

Answered
scatter plot of first n principal components
Take a look at tsne: <https://www.mathworks.com/help/releases/R2017a/stats/tsne.html>

9 years ago | 0

Answered
Is there any way to have the webmap() pop-up display with a GUI and not in a separte window?
This is not possible. You can download the data and show it in a MATLAB figure with geoshow() but the webmap is not embeddable....

9 years ago | 0

| accepted

Answered
Import CSV with comma and colon
I'd just use the import tool. Hit import data and select that file or right click import on it. <</matlabcentral/answers/upl...

9 years ago | 0

Answered
sortrows command doesn't sort numbers properly
sort(double(string(c))) Where c is your cell array. (String requires 16b or newer)

9 years ago | 0

Answered
Can App Designer support 3D plots?
Not yet. You can spool up a regular MATLAB figure from an app designer user interface for your 3d needs.

9 years ago | 0

Answered
strange outcome matlab-intern and command-line
When MATLAB starts, the random number generator seed is the same ( |rng('default')| ). To reseed it to something random, put th...

9 years ago | 1

| accepted

Answered
Increasing HG2 framerate when updating large meshes: mission impossible?
What about using an |hgtransform|? t = hgtransform; set([p1 p2],'parent',t); for i=1:100 tform = makehgtfo...

9 years ago | 0

Load more