Beantwortet
I'm using the histogram function, I would like to reduce the frequency of the y-axis
ax = gca; ax.YScale = 'log' Set the y axis to log scale.

fast 9 Jahre vor | 0

| akzeptiert

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

fast 9 Jahre vor | 1

| akzeptiert

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

fast 9 Jahre vor | 2

| akzeptiert

Beantwortet
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...

fast 9 Jahre vor | 0

Beantwortet
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>

fast 9 Jahre vor | 0

| akzeptiert

Beantwortet
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.

fast 9 Jahre vor | 2

Beantwortet
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/...

etwa 9 Jahre vor | 6

| akzeptiert

Beantwortet
[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>>

etwa 9 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 9 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 9 Jahre vor | 0

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

etwa 9 Jahre vor | 1

| akzeptiert

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

etwa 9 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 9 Jahre vor | 0

Beantwortet
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 ...

etwa 9 Jahre vor | 3

| akzeptiert

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

etwa 9 Jahre vor | 0

Beantwortet
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.

etwa 9 Jahre vor | 0

Beantwortet
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...

etwa 9 Jahre vor | 0

| akzeptiert

Beantwortet
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>

etwa 9 Jahre vor | 0

Beantwortet
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...

etwa 9 Jahre vor | 0

Beantwortet
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...

etwa 9 Jahre vor | 1

| akzeptiert

Beantwortet
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> ...

etwa 9 Jahre vor | 0

Beantwortet
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...

etwa 9 Jahre vor | 1

Beantwortet
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...

etwa 9 Jahre vor | 0

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

etwa 9 Jahre vor | 0

Beantwortet
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....

mehr als 9 Jahre vor | 0

| akzeptiert

Beantwortet
Can I transform the App design Matlab2016b to executable form
Yes.

mehr als 9 Jahre vor | 0

Beantwortet
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...

mehr als 9 Jahre vor | 0

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

mehr als 9 Jahre vor | 0

Beantwortet
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.

mehr als 9 Jahre vor | 0

Beantwortet
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...

mehr als 9 Jahre vor | 1

| akzeptiert

Mehr laden