Answered
MATLAB online doesn't work
There was an outage between 2:01 AM and 6:50 AM EST according to the Application Status page. Were you trying to use MATLAB Onra...

5 years ago | 0

Answered
Unrecognize position() function
Looking at the documentation page it appears you're trying to use the "Define UAV Platform and Mount Sensor" section of the exam...

5 years ago | 1

Answered
An error occurred while establishing the MATLAB course session
There was an outage between 2:01 AM and 6:50 AM EST according to the Application Status page. Were you trying to use MATLAB Onra...

5 years ago | 0

Answered
How to create vectors out of (histogram) bins and take averages?
You can use groupsummary. x = rand(10, 1); y = rand(10, 1); data = table(x, y) % For display edges = 0:0.25:1; % Take the m...

5 years ago | 0

Answered
addVoid and addCell functions are not installed when installing PDE toolbox
The notes at the end of the documentation page for addVoid and the documentation page for addCell states that each of those func...

5 years ago | 0

| accepted

Answered
No MATLAB resources available
There was an outage between 2:01 AM and 6:50 AM EST according to the Application Status page. Were you trying to use MATLAB Onra...

5 years ago | 1

Answered
convert cell of 'True' and 'False' values to a numeric array of 1s and 0s
s = {'true', 'false'}; C = s(randi(numel(s), 5, 5)) L = matches(C, 'true') This same works if you wanted to use a string arra...

5 years ago | 0

Solved


The Piggy Bank Problem
Given a cylindrical piggy bank with radius g and height y, return the bank's volume. [ g is first input argument.] Bonus though...

5 years ago

Answered
How to average strings and numbers in the same table
Something like this? filename = {'A1B10'; 'A1B10'; 'A3B10'; 'A3B10'; 'A3B5'}; X = [60; 45; 70; 40; 38]; Y = [25; 21; 24; 23; ...

5 years ago | 1

| accepted

Answered
Find graph node names beginning with a few characters
Using a modified version of one of the documentation examples and splitting the code into multiple lines for ease of explanation...

5 years ago | 1

| accepted

Answered
How to install toolbox offline?
Follow the steps on this documentation page.

5 years ago | 0

Answered
Help in producing a Matlab code that simulates Sine and cosine from rotating vector in a circle
It probably wouldn't be too hard to do something like that using the techniques described in this section of the documentation.

5 years ago | 0

| accepted

Answered
Using F1 for help, gives help for wrong function
Does the variable p exist in the workspace when you ask for help? It's not sufficient that the code to create that variable as a...

5 years ago | 0

Answered
HOW DO I USE AVERAGEIF(excel) IN MATLAB?
Take a look at the |groupsummary| function.

5 years ago | 0

Answered
How to run(scriptname) with string argument?
The run function is intended to run script files, not function files. Scripts do not accept input arguments. If you want to run...

5 years ago | 0

Answered
a simple vector to a matrix
X=[1 2 3]; I = eye(3); kron(X, I) kron(I, X)

5 years ago | 2

Answered
I want to make a function of x that uses loop for (x-x(i))
If the display isn't important: x = [1 2 4]; f1 = @(value) sum(cumprod(value-x)) f2 =@(x) (x-1) + (x-1)*(x-2) + (x-1)*(x-2)*(...

5 years ago | 0

Answered
I can't run fastaread and uigetfile over the runtime-based standalone app!!!!
filenameDB = [pathDB fileDB]; This line looks slightly suspicious. I'd prefer to use fullfile to assemble the fil...

5 years ago | 0

Answered
How can I form a table including a string and some other numbers in matlab?
If you want to create a table with one row and one of the variables is a row char vector, you could wrap that variable in a cell...

5 years ago | 0

| accepted

Answered
Where can I get the activation key?
If you are using your school or company's license, please contact your IT department (whoever maintains your software licenses) ...

5 years ago | 0

Answered
Execution of script ode45 as a function is not supported/Error in pop (line 9) [t,p] = ode45(@yprime,[0,tfin],pinit,options);
/Users/laurenashby/Documents/MATLAB/ode45.m This script file is preventing MATLAB from running the ode45 function included with...

5 years ago | 0

Answered
graph format for Applied Physics Letters Journal papers
There is a page with guidelines / rules for Applied Physics Letters manuscripts. If you have further questions about those guide...

5 years ago | 0

| accepted

Answered
Execution of script ode45 as a function is not supported ... Error in pop (line 12) [a,b] = ode45(@yprime,[0,tfin],pinit);
You've written a script file ode45.m that's taking precedence over the ode45 function included in MATLAB. Check where that scrip...

5 years ago | 1

Answered
Mathwork address is required. My apologies if its not Matlab question
I'm not certain what tax documents you need to send to MathWorks, but perhaps you should contact Customer Service using the Cont...

5 years ago | 1

Answered
How to create iteratively a vector of handle functions?
c = {@sin; @cos; @tan}; f1 = @(x) cellfun(@(fh) fh(x), c); % Assuming the outputs are all scalar y1 = f1(pi/4) f2 = @(x) cell...

5 years ago | 0

Answered
Saving a variable with an index in a for loop
Can you do this? Yes. Should you do this? The general consensus is no. See that Answers post for an explanation and alternative...

5 years ago | 0

Answered
License will still running if I change my laptop?
Use the instructions in this Answers post to deactivate the license on the old laptop then install and activate the license on t...

5 years ago | 0

Answered
Why indexing vs not indexing the 2D matrix will lead to different result?
For a long time [Bobby Cheng and Peter Perkins call out "a few release" and "several releases" in a thread from 2007 on the old ...

5 years ago | 2

| accepted

Answered
Hi, I have some code written to solve LU decomposition, but the code tells me that there is an error in [n, n], why is this error? Any suggestions?
When you're asking for help understanding the cause of an error message, please include the error message in your post. I'm goi...

5 years ago | 0

Answered
how to type this equation in matlab?
Much as you'd written it here, except for the fact that if you multiply a number and a variable, two variables, or a number or v...

5 years ago | 0

Load more