Answered
How to set title for matlab.graphics.primitive.Image ?
|image| objects don't have either a String or a Title property. The |axes| in which |image| objects are contained don't have a S...

7 years ago | 0

Answered
retime function not working
The variable tt is a |timetable|, but is MeanTempC? Nowhere in your code do you define it, but from the error I would guess it i...

7 years ago | 0

| accepted

Answered
Not sure why vector changes assignment when using ode45
[~,out3]=ode45(@thirdfun,t,y0,vector) This isn't the right way to pass a third input (beyond the two that |ode45| passes in...

7 years ago | 0

| accepted

Answered
How do I generate a node graph of Matrix of resistors with a given pattern.
So you just want a rectangular grid of nodes with each connected to its neighbors above, below, left, and right except for nodes...

7 years ago | 0

| accepted

Answered
Splitting A String into variables
The code you posted already does this. >> a=input('enter calc: ','s') enter calc: 1+1 a = '1+1' >> a(1) ans = ...

7 years ago | 0

| accepted

Answered
Why this algorithm produces a relative error?
Walk through your code, line by line. How many times does MATLAB execute the body of your while loop? I think you want to itera...

7 years ago | 1

| accepted

Answered
How to write Continue Long Statements on Multiple Lines ?
Another way to do this, with a sufficiently recent release of MATLAB, is to join elements of a string array together with the re...

7 years ago | 1

| accepted

Answered
Element-wise Conditional Statements in Script
Use the max function with two inputs.

7 years ago | 0

| accepted

Answered
Matlab Bingo Game card
randperm accepts a scalar (just one number) as its first input. You could generate a set of random numbers from 1 to 15 and use...

7 years ago | 0

| accepted

Answered
How do I get my function to form the derivative for Newton-Method
The diff function doesn't know how to operate on arbitrary function handles, including anonymous function handles. For functions...

7 years ago | 1

Answered
outputLimits function not found
Do you have Image Processing Toolbox installed? It was introduced in that toolbox in release R2013a, according to the documenta...

7 years ago | 0

Answered
Error on official example "Classify Videos Using Deep Learning"
Which release are you using? The Release Notes for the most recent release (release R2019b as I type this) states that "AverageI...

7 years ago | 0

Answered
matlab ppval understanding of centering/displacement in breaks
The documentation page for ppval says that the pp input is a struct array created by a function like mkpp. If we look at the mkp...

7 years ago | 0

Answered
how do i get my license number and activation key
Your college's IT department (whoever maintains your college's software licenses) should have sent you the information you need ...

7 years ago | 0

Answered
I have matrix with "L" row and "N" column(L<N). I want to convert this matrix to N*N matrix. how can I do it in matlab?
There are many ways to expand a matrix. Let's take one small example. A = [1 2 3; 4 5 6]; A is 2-by-3. If I wanted to make thi...

7 years ago | 0

Answered
solve ode with parametrizing function
The anonymous function you pass into ode45 accepts t and x from ode45 but does not pass them into your for_kine function. @(t,x...

7 years ago | 0

Answered
Solving non-linear equations in MATLAB
You could try changing your initial guess. But for this set of equations, since the elements in x always appear inside a call to...

7 years ago | 1

Answered
Find and insert missing dates in a table with irregular timestamp
retime should work. Let's make a sample timetable with a few pieces of data. dt = datetime(2017, [5; 5; 5; 6; 6; 6; 6], [29; 30...

7 years ago | 0

| accepted

Answered
How can I convert the cosine function I get into a circle?
Instead of a plot I think you want a polarplot (assuming you're using release R2016a or later.)

7 years ago | 0

| accepted

Answered
ODE error and vector error
As the error message states, your initial condition vector X0=[C0;S0;s1;s2]; tells ode45 that you're trying to solve a system ...

7 years ago | 0

Answered
Variables with sequential names (with function handle @)
The anonymous function "remembers" the value n had when the anonymous function was created, so it will do what you want when it ...

7 years ago | 0

Answered
Indexing a Variable in an Input Prompt
If you're using a release that supports string you can use the + operator for string. Playerturn = 2; moveNumber = 1; y1 = in...

7 years ago | 0

Answered
How to write a function
What's the name of the file in which you saved this function? If the function name and the file name are different, MATLAB knows...

7 years ago | 0

Answered
Variable assigns value but wont plot
If you want to add points to your line one by one as your loop iterates you could create an animatedline before entering your fo...

7 years ago | 0

Answered
deleted old version of Matlab (R2017b) keeps getting back
Do you have some automated process that restores the Applications folder from a backup like Time Machine? If you're in a corpora...

7 years ago | 0

Answered
concatenate column values in a vector
Treat v1 as the coefficients of a polynomial and evaluate that polynomial for x = 10. v1 = [ 1,0,1,0]; v2 = polyval(v1, 10)

7 years ago | 1

Answered
errors in training deep learning network from matlab help system examples
Which release of Deep Learning Toolbox or Neural Network Toolbox are you using? How does this example appear (or does it appear...

7 years ago | 0

Answered
Why pcbstack layers not aligned?
This might be related to Bug Report 2066356 as Hyma Harish Vallabhapurapu posted, but it could also be related to Bug Report 207...

7 years ago | 0

| accepted

Answered
Using bsxfun for non-numeric data
For this specific example, you can now take advantage of implicit expansion and the string type. >> a = {'aa', 'bb', 'cc'}; >>...

7 years ago | 1

Answered
What to do if I want make parameters a vector in a ODE23?
There's an example on the ode23s documentation page (open this by typing doc ode23s in the MATLAB Command Window) for how to pas...

7 years ago | 0

Load more