Answered
how can i stay 7t longer in my code
If your equations depend not just on the value of the solution at the current time but also the value of the solution at a previ...

6 years ago | 0

Answered
C-Caller block missing in MATLAB 2018a
According to the documentation page for that block it was "Introduced in R2018b" and so is not available in earlier releases. In...

6 years ago | 0

| accepted

Answered
Unsatisfied answer and no errors
sum b(i,j,k)=1 sum b(i,j,k)=0 These lines don't do what you think they do. They are equivalent to: sum('b(i,j,k)=1') sum('b(...

6 years ago | 0

| accepted

Answered
Save function doesn't do anything
Let's make sure you're calling the correct version of the save function. What does this command show? which -all save

6 years ago | 0

Answered
what should I do. HELP function
As stated on this documentation page "Script files cannot have the same name as a function in the file." Either rename your scri...

6 years ago | 0

Answered
Is it possible to edit a legend with 19 labels down to only 6 labels which correspond to a colour?
You can pass a vector of specific handles that you want to appear in the legend into the legend function. % Sample data x = 0:...

6 years ago | 0

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

Load more