Answered
Calling objects in legend changes marker size
You will never be able to do this. When you ask for the second output of legend you invoke a backwards compatibility mode that c...

20 hours ago | 0

Answered
plot with input arguments
funs_cell = {'sin', 'cos', 'tan', 'sinh'}; markers = {'+', 'o', '*', 'x', 's'}; funs = cellfun(@str2fun, funs_cell, 'uniform',...

1 day ago | 0

Answered
Multiplication of specific column vector elements
You have symbolic functions with array valued outputs -- obo is a symbolic function with a 3 x 1 body for example. In MATLAB, ...

1 day ago | 0

Answered
Importing and Editing a text file using strrep and user inputs
Stage_Correction = strrep(Mac_Data, '(m)', user_input_stage); Mac_Data does not exist in your code at that point. Your replace...

1 day ago | 2

Answered
Can I create a symbolic variable with units and assign an initial value of 0
Units are implemented by multiplying by a symbolic variable that can be recognized by the units manipulation package. Unfortunat...

1 day ago | 0

Answered
readtable does not handle excel dates and times properly
In your file, the data in the first column is a complete date and time, that has been formatted as date only, and formatted for ...

1 day ago | 0

Answered
Does anyone know why this script isnt working?
The error message is wrong . The code needs the x to be the first row and the y to be the second row. Not columns.

1 day ago | 0

Answered
How can I save the video file from matlab videoPlayer
videoFWriter=vision.VideoFileWriter('result.avi','FrameRate',videoReader.info.VideoFrameRate); You have that line inside th...

2 days ago | 1

| accepted

Answered
My GPU coder has wrong output.
https://www.mathworks.com/help/fixedpoint/ref/coder.nullcopy.html X = coder.nullcopy(A) copies type, size, and complexity of A ...

2 days ago | 0

Answered
I keep getting this error: Error using vertcat Dimensions of arrays being concatenated are not consistent. Error in ME450_project_linkage (line 16) P5_pos = D*[0;-1+sin(theta)];
P5_pos = D*[0;-1+sin(theta)]; Your theta is 1 x 2001, so -1+sin(theta) is 1 x 2001. You are trying to create an array with two ...

2 days ago | 0

Answered
How to use linspec
The parameters of linspace are starting value ending value total number of values to use. In the below discussion I will ref...

2 days ago | 1

| accepted

Answered
Saving mat file with prefix over loop
clear all close all d = uigetdir(); filePattern = fullfile(d, '*.mat'); file = dir(filePattern); for k = 1: numel(file) ...

2 days ago | 0

| accepted

Answered
MATLAB Version 2007a re-install on new laptop
Use https://www.mathworks.com/downloads/web_downloads/select_release?mode=gwylf . Provided you have authorization, on the right ...

2 days ago | 0

Answered
Make matlab write to a text file WITHOUT scientific notation.
You can use dlmwrite() and pass in a 'precision' option that is a character vector representing a % format. For example, you cou...

2 days ago | 0

Answered
What is the most efficient way to store a data set (Made up of multiple txt files).
It turns out that MATLAB stores each variable of a table in a cell array entry, so the storage requirements are overhead for st...

2 days ago | 0

| accepted

Answered
How do I show an image inside a figure?
The three main functions to display an image in an axes are image(), imagesc(), and imshow() . Of these, image() is the most ba...

2 days ago | 0

| accepted

Answered
How can i load .mat files from subfolders with for loop?
projectdir = 'C:\Users'; foldinfo = dir( fullfile(projectdir, 'I*') ); foldinfo(~[foldinfo.isdir]) = []; %get rid of I* that...

2 days ago | 0

| accepted

Answered
How to use loops for specific numbers
%Ball Trajectory Graph %Define the for loop first velocity= [30,40,47.16]; angle=[5,7.5,10,30,45,60]; for ii=1:length(veloci...

2 days ago | 0

Answered
Undefined function or variable 'nrbevalIGES'.
Look in the comments on the submission: deng deng helpfully added: ===Undefined function or variable 'nrbevalIGES' ===I GOT ...

2 days ago | 0

Answered
If I have an older version of Matlab can it be upgraded to a newer version like 2015 for free?
I have Matlab 2009, but can I update/upgrade to a newer version without getting the lastest version and paying more than I alrea...

2 days ago | 0

Answered
Why is my plot blank ?
U is a symbolic variable, so f(U,0.01) is a symbolic expression involving the symbolic variable U plot() can never plot symboli...

2 days ago | 0

Answered
Undefined function "setFixedTransform"
It does appear to be a bug. The line setFixedTransform(newBody1,tformTree); should probably be setFixedTransform(newBody1.Joi...

3 days ago | 1

Answered
How can i plot this graph?
symbolic mod() does not mean what you think it means. When you pass an expression, it takes the mod of each subexpression, leavi...

3 days ago | 0

| accepted

Answered
Finding matrix modular for encryption
You will have problems with this due to the limited precision available to real numbers. For example, 1/3 and 1/10 cannot be exa...

3 days ago | 0

Answered
Restart script at specific line if faults
No. while true if ~exist('restarting', 'var') restarting = false; end if ~restarting all of th...

3 days ago | 0

Answered
How to use spacing around operator?
Just like -5 is "unary minus", +5 is "unary plus". [a -b] is [a, -1*b] and [a +b] is [a, +1*b] -- except that uminus and uplus h...

3 days ago | 0

Answered
Simulink - Apply different Delay to different columns of input data
If you are using From File or From Workspace, then the first column of the array must be the timestamp, and the timestamp applie...

3 days ago | 0

Answered
Integration over function between two limits
integral() is used only for numeric integration. For symbolic integration, use int() if you want to see the closed form solutio...

3 days ago | 0

Answered
Calculation of entropy shows " the entropy of the image is = NaN", please help
H = sum(-m.*log2(m)); The problem with the code is that you have some entries which are 0. You should only be calculating based...

3 days ago | 0

Load more