Answered
View Reshape Function Code
We don't distribute the source code for that built-in function.

6 years ago | 1

Answered
What is problem to make space curve [2*cos(t),2*sin(t),5]?
You want to draw this curve in the section of 3-d space in the plane z = 5? You need to specify one z coordinate for each coordi...

6 years ago | 0

| accepted

Answered
Writing m function to be read by Livescript
If the name of the main function in a function file and the name of the function file itself are different, MATLAB will know the...

6 years ago | 0

Answered
How can the code tell if a single test is running instead of the whole test class?
If you're running this to debug, I assume you actually want the additional information only when the test fails. If so try matla...

6 years ago | 0

Answered
I can't get a license though I have paid
Please check your spam folder to determine if the email from MathWorks with your installation instructions has been caught there...

6 years ago | 0

Answered
What is wrong with my code.I want to connect stars(*)by straight line,but it's printing only points,not line!
You're creating one line per ginput call, plotting one point per line. They're not all the same line object so they're not conne...

6 years ago | 0

Answered
why a variable is remaining unchanged when solving two simultaneous ordinary differential equation using ode45?
Let's look at both terms of the expression you use to define dX(1). dX=[(m*(Ca0-x(1))/rho*V)-k*x(1)*exp(-E/R*x(2)); For the fi...

6 years ago | 2

Answered
Search a Table With Numerical Entries
If you want to make a digraph from your table, you don't need to go to the three-column table first. Let's make a sample table i...

6 years ago | 0

| accepted

Answered
How to fix this "Error using matlab.ui.​control.in​ternal.mod​el.Abstrac​tNumericCo​mponent/se​t.Value (line 111) 'Value' must be a double scalar." ??
Where do you assign a value to the private property valueToSimulink and what value do you assign to that property? Set a breakp...

6 years ago | 0

Answered
READTABLE FUNCTION. NOT WORKING FOR ME.
You're trying to read a file with the extension xlxs. The file you've highlighted in the Current Folder window has the extensio...

6 years ago | 0

Answered
Can you help me ? Indexing error
You've defined a variable named det in your code. Because of this you cannot use the det function. Attempting to call det (the f...

6 years ago | 0

| accepted

Answered
is there's a way to automatically find peaks in an histogram?
You can do this using the islocalmax function. % Sample data rng default x = randn(1, 1e5); h = histogram(x); % Retrieve ...

6 years ago | 4

| accepted

Answered
Create New Array from Existing Array using For Loop and If Statement
No need for a for loop or an if statement. x = randi([30 390], 10, 10) y = mod(x, 360) Depending whether or not you want y to...

6 years ago | 1

| accepted

Answered
Unexpected error on line with property validation
The ability to validate property values that way was introduced in release R2017a. It won't work in earlier releases.

6 years ago | 1

| accepted

Answered
How to solve an ODE system with time-dependent variables in MATLAB?
From your description, it sounds like you don't have an ordinary differential equation (ODE) but you have a delay differential e...

6 years ago | 0

Answered
Working with Matlab for a 15! x 30 matrix
To speak to some of the questions Image Analyst asked, how large a contiguous block of memory would storing this matrix require?...

6 years ago | 0

Answered
matlab space error problem
You can use concatenation as Fangjun Jiang and Brent Kostich suggested. I'd probably use join instead. join(["I", "love", "Geor...

6 years ago | 0

Answered
FZERO requires at least two input arguments
I have a number of pieces of feedback on this code. It looks like it was written for an older version of MATLAB and was copied i...

6 years ago | 1

Answered
Ranking Variables by Value
You've made this a bit harder on yourself than it needs to be by defining individual variables for the counts and prices of each...

6 years ago | 1

Answered
Matlab R2016b
My suspicion is that your images folder contains no JPG files. If it doesn't, your for loop does not execute its loop body and t...

6 years ago | 1

Answered
Should mvnrnd Always Advance the State of the Global Stream
There's no requirement that these two lines of code that call the same function with different inputs need follow identical code...

6 years ago | 0

Answered
no function called predict although stats toolbox is downloaded
There are several different functions named predict in Statistics and Machine Learning Toolbox. Each is for a specific type of o...

6 years ago | 0

Answered
classes and the "set" method
Make X a Dependent property in class Dummy and make its get.X method compute the value of X using the current value of the av pr...

6 years ago | 0

| accepted

Answered
How do I define an empty table of unknown size?
Elements = 1:5; n = numel(Elements); T = table('Size', [2 n], 'VariableTypes', repmat("string", 1, n))

6 years ago | 0

| accepted

Answered
nmrval returning larger matrix than expected.
Does your X matrix contain a column of 1s? If so see the Note in the first item of the Description section on the documentation ...

6 years ago | 0

Answered
Plotting the ODE without an analytical solution
If your initial conditions are supposed to be: "where x(0)=0.2 and x'(0)=0 for t=0:100?" why are you specifying them as x(0) = 0...

6 years ago | 0

| accepted

Answered
How to write Matlab code based on the Simpson’s 1/3 rule?
When you ask for help understanding / correcting an error, please include the full and exact text of that error message (all the...

6 years ago | 0

Answered
How to get License number for online MATLAB if MATLAB is not installed?
The first ways I'd try to locate the license number would be to check the installation instructions you should have been sent (i...

6 years ago | 0

Answered
I have Symbolic Math Toolbox but get an error with syms, why?
The function you've written or downloaded named syms.m in your OneDrive is shadowing the syms function that is part of Symbolic ...

6 years ago | 0

| accepted

Answered
How to do basic time arithmetic when NaNs are involved
Replace the NaN numeric values in your date cell arrays with 'NaT' and the NaN numeric values in your time cell arrays with 'NaN...

6 years ago | 0

Load more