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

casi 9 años hace | 0

| aceptada

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

casi 9 años hace | 1

| aceptada

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

casi 9 años hace | 2

| aceptada

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

casi 9 años hace | 0

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

casi 9 años hace | 0

| aceptada

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

casi 9 años hace | 2

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

alrededor de 9 años hace | 6

| aceptada

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

alrededor de 9 años hace | 0

| aceptada

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

alrededor de 9 años hace | 0

| aceptada

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

alrededor de 9 años hace | 0

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

alrededor de 9 años hace | 1

| aceptada

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

alrededor de 9 años hace | 0

| aceptada

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

alrededor de 9 años hace | 0

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

alrededor de 9 años hace | 3

| aceptada

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

alrededor de 9 años hace | 0

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

alrededor de 9 años hace | 0

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

alrededor de 9 años hace | 0

| aceptada

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

alrededor de 9 años hace | 0

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

alrededor de 9 años hace | 0

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

alrededor de 9 años hace | 1

| aceptada

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

alrededor de 9 años hace | 0

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

alrededor de 9 años hace | 1

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

alrededor de 9 años hace | 0

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

alrededor de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 1

| aceptada

Cargar más