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

mehr als 6 Jahre vor | 0

| akzeptiert

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 1

| akzeptiert

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

mehr als 6 Jahre vor | 1

| akzeptiert

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

mehr als 6 Jahre vor | 0

Frage


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

mehr als 6 Jahre vor | 2 Antworten | 5

2

Antworten

Beantwortet
Retrieve data of a row in the table
You could do T.pos(T.iwant==542031)

fast 7 Jahre vor | 0

| akzeptiert

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

mehr als 7 Jahre vor | 0

| akzeptiert

Frage


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

mehr als 7 Jahre vor | 0 Antworten | 0

0

Antworten

Gelöst


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

etwa 8 Jahre vor

Gelöst


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

etwa 8 Jahre vor

Gelöst


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

etwa 8 Jahre vor

Gelöst


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

etwa 8 Jahre vor

Gelöst


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

etwa 8 Jahre vor

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

mehr als 9 Jahre vor | 0

| akzeptiert

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

mehr als 9 Jahre vor | 0

| akzeptiert

Frage


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

mehr als 9 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

etwa 10 Jahre vor | 1 Antwort | 0

1

Antwort