Answered
Exportgraphics and TiledLayout: Figure Handle vs TiledLayout handle?
From the documentation page for the exportgraphics function the relevant detail to me is "The graphics object can be any type of...

6 years ago | 0

| accepted

Answered
editing the JET colormap
You should probably read through this documentation page and the pages listed in the "Related Topics" section on that page. It t...

6 years ago | 1

Answered
n th Fibonacci number with function
function [c] = fibo (a, b, n) n = input('n:'); Every time your user calls your fibo function, you're going to ask them to pass...

6 years ago | 0

| accepted

Answered
ODE45 error running odearguments
Does your odesys function return a column vector, a row vector, or a non-vector? If it returns a row vector (as I believe it do...

6 years ago | 0

Answered
Undefined function 'ga' for input arguments of type 'function_handle'.
Do you have Global Optimization Toolbox licensed and installed? The ga function is part of that toolbox. You can check if you ha...

6 years ago | 0

Answered
How to Use for Loop Variable outside loop
I know this is an old question, but it popped up to the top of Answers due to AKARSH KUMAR's answer. Consider the first iterati...

6 years ago | 0

Answered
Another extension than .mat to save output data
Probably I would either store the processed data to a separate folder from the raw input data or collect the list of raw input d...

6 years ago | 0

| accepted

Answered
Can someone send me the MemoryMonitorAppExample.mlapp example from app desinger? I erased mine accidentally :(.
Contact Technical Support using the telephone icon in the upper right corner of this page and app them to send you the version o...

6 years ago | 0

| accepted

Answered
How do I get or puchase the Matlab Spreadsheet link For Excel
Do you see "Spreadsheet Link" in the Add-Ons list? It should be in the Computational Finance section under the Application Produ...

6 years ago | 0

| accepted

Answered
No parallel toolbox in R2019a matlab toolbox folder
Prior to release R2019b the name of the folder in which Parallel Computing Toolbox functions are stored was distcomp, not parall...

6 years ago | 0

Answered
Suggestions on how to generate a mask
If you have Mapping Toolbox, read the data file containing the borders of the states (see the "Enter MATLAB" section of this blo...

6 years ago | 0

Answered
Switch Case statements MATLAB code in a 'for' loop
switch / case isn't the right tool to use here. I suggest using if / elseif / else instead.

6 years ago | 0

| accepted

Answered
How to calculate expm of a matrix?
You've written your own script all.m that's being called instead of the all function built into MATLAB. Rename or remove your fi...

6 years ago | 1

| accepted

Answered
Invalid syntax error when inputting input arguments
When defining a function you need to give the names of the variables that will contain the data with which the user will call yo...

6 years ago | 0

| accepted

Answered
conditional statement not working correctly
Can you tell me one value for Lux that is simultaneously less than 0 and greater than 100000? (0>Lux && Lux>100000) You want t...

6 years ago | 0

Answered
Error using ^ (line 51) Incorrect dimensions for raising a matrix to a power. Check that the matrix is square and the power is a scalar.
To perform elementwise matrix powers, use '.^'. Since you want to raise each element of your vector to a power, use .^ instead ...

6 years ago | 0

Answered
When Should a User Use timeit, cputime, or tic toc?
See this documentation page for a discussion of the various timing functions.

6 years ago | 3

| accepted

Answered
why i m getting this error "Array indices must be positive integers or logical values. or min=min(dist);" please help me out?
You cannot call the min function while a variable named min exists in the workspace. Rename or remove the variable.

6 years ago | 1

| accepted

Answered
What does the stars in the result of a matrix multiplication mean?
Did you enable the 'rat' display format? From the help text for the format function: format RAT Approximation by rati...

6 years ago | 0

| accepted

Answered
What happened to the ESRI file in the mapping toolbox projection files in 2020b PR?
Please do not ask questions about the prerelease here on Answers. Send those questions / feedback to Technical Support using the...

6 years ago | 0

Answered
The memory size occupied by an image
Compression, perhaps. Let me generate a random matrix. What's the most compact way you can think of to write a command to regen...

6 years ago | 1

Answered
Integral of exponential matrix
Tell MATLAB your integrand doesn't return a vector the same size as the input but should be called with a scalar and will return...

6 years ago | 3

Answered
Is is possible to control the order of inherited class properties?
Have your class inherit from matlab.mixin.CustomDisplay and override the getPropertyGroups method. See the "Customize Property D...

6 years ago | 1

Answered
Matlab stops to process in Linux Mint
Based on that limited information, I'd guess the out-of-memory killer chose to kill MATLAB to free up some memory (so that it ca...

6 years ago | 0

| accepted

Answered
Faces of a Cube - Multifaceted Patches Documentation
Let's start out by labeling the points whose coordinates are given in the Vertices array. v = [0 0 0; 1 0 0; 1 1 0; 0 1 0; 0 0 ...

6 years ago | 1

| accepted

Answered
How can one define this vector in an elegant way?
As Walter Roberson said in a comment if you want to preallocate y to be the same size as x, you can do that using functions like...

6 years ago | 2

| accepted

Answered
Function error in if function
If you call your function like this: y = x() what value should MATLAB use in the if statement condition where it tries to vali...

6 years ago | 0

Answered
How to print status
I recommend not using table as a variable name as table is the name of a data type in MATLAB. Let's use your sample data. >> s...

6 years ago | 1

Answered
What does this upperline mean?
It indicates that the expression involves the complex conjugate of those elements of b. You didn't tell Symbolic Math Toolbox th...

6 years ago | 0

| accepted

Load more