Réponse apportée
Black mask over pcolor plot
You can assign NaN in your first matrix according to your mask and set the background of your axes to black: A = randi(255,200,...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Alternation without for loop
Here's a possibility: if A and B were guaranteed to be the same length (your example is not) and row vectors, you could do N = ...

plus de 6 ans il y a | 0

Réponse apportée
Can the background of "Text Area" be transparent?
With R2019b and using the uifigure rather than figure, there is a uihtml() element, which seems to have scroll by default (don't...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
Write a simple txt files made by strings and numbers
With minimal changes to what you have (change space to tab too) tests = vertcat('CT4H12X9','CT5H12X9','CT5H12X8','CT6H12X7','CT...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
Histogram Fitting in Matlab
If you have access to the underlying data... ...and you have a model for the distribution, then you can just do parameter estim...

plus de 6 ans il y a | 0

Question


Run Web App maximized (fill browser window) by default?
There is a feature for "maximizing" the web app window inside the browser: Is there a way to have the apps run in "full brows...

plus de 6 ans il y a | 2 réponses | 5

2

réponses

Réponse apportée
Retrieve data of a row in the table
You could do T.pos(T.iwant==542031)

presque 7 ans il y a | 0

| A accepté

Réponse apportée
Can we get gradient of a linear programming problem ?
Your example actually only gave 1 component of the gradient, at an unspecified fixed value of x. The gradient of your scalar fun...

plus de 7 ans il y a | 0

| A accepté

Question


overloading elementary operations on custom classes
I want to encapsulate numbers within a class to hold some meta-information about the number, e.g. classdef myClass prop...

plus de 7 ans il y a | 1 réponse | 0

0

réponse

A résolu


Nearest Numbers
Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...

presque 8 ans il y a

A résolu


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

presque 8 ans il y a

A résolu


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

presque 8 ans il y a

A résolu


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

presque 8 ans il y a

A résolu


Assign matrix elements to separate variables
Given an input array, return each element of the array as a separate variable. If the number of output arguments (k) is less tha...

presque 8 ans il y a

Réponse apportée
How to force output of large figure to not be "scaled", or how to properly print a pdf whose dimensions won't fit on the [small] screen
I got a work-around. The issue seems to be that figures are automagically resized when they don't fit on the screen, and this...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
Set of ODEs with an additional condition
I think this is a differential algebraic equation (DAE)? Documentation for ode15s might help.

plus de 9 ans il y a | 0

| A accepté

Question


How to force output of large figure to not be "scaled", or how to properly print a pdf whose dimensions won't fit on the [small] screen
Hello, I am trying to create a figure that will eventually be "print"ed to pdf at a standard paper size. However, if I tried ...

plus de 9 ans il y a | 2 réponses | 0

2

réponses

Question


Why is the parent of a uicontextmenu object always the top level figure?
The |uicontextmenu()| function is supposed to take a parent handle as input, but when querying a resultant's object's parent, I ...

environ 10 ans il y a | 1 réponse | 0

1

réponse