Answered
Multiple lines to write using fid open
The issue is with the permission you are using with fopen ('w'). 'w' Open or create new file for writing. Discard existing co...

5 years ago | 0

| accepted

Answered
How do we start numbered lists in the Live Editor (i.e. in a live script) from a different number?
I do not believe this is currently possible in live scripts, but is a good suggestion. I recommend submitting this as a suggesti...

5 years ago | 0

Answered
Keep getting "too many input arguments"
Methods are called just like functions, with the object passed in as one of the arguments. Try this: a = lm25119_calcs; HsFETl...

5 years ago | 0

| accepted

Answered
error in axis! help me
As the error states, you have an unexpected number of values in your axis command. For a 2D plot, you should have 4. Since I don...

5 years ago | 1

Answered
Extracting value from Name-Value pairs using the Name string
ind = strcmp({test.Name},'long_name'); test(ind).Value

5 years ago | 1

| accepted

Answered
Display the value instead of 1x1 table
This is likely an issue with how you have assigned values to your cell array. Rather than assigne a table to a cell, assign its ...

5 years ago | 0

| accepted

Answered
get the last for digits of the messages and create another array with them
They are characters because you convert your string to a character array. Ether convert the result back to a string using string...

5 years ago | 0

| accepted

Answered
MATLAB App Testing - Confirmation dialog boxes
It sounds like you want to programmatically close a confirmation diaglog box. If so, see this answer.

5 years ago | 0

Answered
MATLAB Grader use of memory
The problems are not stored in the LMS. Instead, each embedded problem is assigned a resource link ID that is used to identify w...

5 years ago | 0

| accepted

Answered
Which Products should I select
I believe this is answered in the thread where you first posted this question. (Yes)

5 years ago | 0

Answered
How can I plot this?
There are some inconsistencies in your code. The issue with the line you are questioning is that you have one X input and 2 Y in...

5 years ago | 0

Answered
Getting Y value for plot having 3 curves in single plot. using App designer dropdown component selecting one curve to read Y data for X data? using GUI
Use App Properties to share your data within an app. That way, you don't have to keep loading the same variables. Consider loadi...

5 years ago | 0

| accepted

Answered
How to save output in MATLAB Mobile?
MATLAB Mobile uses MATLAB Drive for its file system. MATLAB Drive is a cloud-based storage system. You can access anything you s...

5 years ago | 0

| accepted

Answered
Is it possible to draw clustergram on UIAxes in app designer?
Part of the challenge is that clustergram creates its own figure window rather than looking for one to plot into. Here's somet...

5 years ago | 0

| accepted

Answered
Error in plotting ternary diagram using my script
It works fine for me. unzip('github_repo.zip') ok

5 years ago | 0

Answered
Infinite Loop Of Switch
Switch statements do not loop, so no, it is not possible to create an infinite loop using one. If you want to create a loop, co...

5 years ago | 0

| accepted

Answered
How to add a line to scatter plot
Use yline. scatter(rand(1,100),rand(1,100),'b','*') yline(0.7)

5 years ago | 2

| accepted

Answered
How do you change the color of legend lines? How do you make x axis go from 0 to 2pi?
It sounds like you would be well served by going through Ch 9 of MATLAB Onramp. It covers plotting. See the xlim function for sp...

5 years ago | 0

Answered
Driving scenario design tool on mathworks site
The Driving Scenario Designer is part of the Automated Driving Toolbox. That toolbox is not yet supported in MATLAB Online. You...

5 years ago | 1

| accepted

Answered
To make a course using MATLAB GRADER, is it possible to import and reuse problems from CODY?
No, it is not currently possible to import problems from Cody. There is a problem catalog, though it is more of a sampling of ...

5 years ago | 0

Answered
How to obtain the input from the plotted curve ( current vs time) through mouse click?
You can incorporate the ginput function into your code.

5 years ago | 0

| accepted

Answered
How to add Sine component on an array?
Create a 999999x1 vector of random numbers and a 999999x1 vector containing the y values of your sine wave, and use "+" to add a...

5 years ago | 0

Answered
Convert Berkeley Madonna code to Matlab code
If you'd like to convert a Berkeley Madonna model to the equivalent SimBiology model, you can try using this converter from the ...

5 years ago | 1

Answered
Cannot plot the fourier function "ERROR Data must be numeric, datetime, duration or an array convertible to double"
F2 is a symbolic expression, not numeric. You need to either substitute in values for the symbolic variable w, or use a method f...

5 years ago | 0

| accepted

Answered
Error using save 'handles.final_cell' is not a valid variable name.
You could try this, but it will save every field in your structure to the mat file, not just final_cell. save('Final values.mat...

5 years ago | 2

| accepted

Answered
solve(eqn,x) giving wrong answer
It looks the same to me. Just do the algebra. b = -0.0367; d = 0.000003192; % Note that these values match what MATLAB is giv...

5 years ago | 0

Answered
How to make heat map with 4 parameters (category) on X -axis.
Heat map creates a visual of a matrix where rows are Y and columns are X. For example consider this 3x2 matrix: data = rand(3,...

5 years ago | 1

| accepted

Answered
GUI Subfunction not passing variable to parent function
See this page. Typically this would be done in figure-based app by adding a structure to the figure, and adding your variables ...

5 years ago | 0

Answered
Set upper and lower bounds of for loop
Have SimText be a vector instead of a string, and your for loop should run as expected. a = 1:3; for b = a b end

5 years ago | 0

| accepted

Answered
Changing email address of Moodle accounts and MatLab grader integration
No. Access to MATLAB Grader in Moodle is determined by role, not account details. Changing how users log into Moodle should not ...

5 years ago | 0

Load more