Answered
How to generate the rectangular signal from the image below using square function :
Your teacher has gone so far as to even tell you what function to use. If you'd even looked at the documentation for square, you...

5 years ago | 0

Answered
Generate a vector of uniformly spaced time samples and a vector of r(t) samples
You'll find Ch 4, 6 & 9 of MATLAB Onramp relevant to your assignment.

5 years ago | 0

Answered
How to generate code for a picture of this butterfly
I suggest going through MATLAB Onramp to learn the fundamentals of MATLAB. This should give you the skills you need to answer al...

5 years ago | 0

Answered
How to generate code for a picture of this color wheel
I suggest going through MATLAB Onramp to learn the fundamentals of MATLAB. This should give you the skills you need to answer al...

5 years ago | 0

Answered
How to generate code for a picture of this fireball
I suggest going through MATLAB Onramp to learn the fundamentals of MATLAB. This should give you the skills you need to answer al...

5 years ago | 0

Answered
How to generate code for a picture of this heart
I suggest going through MATLAB Onramp to learn the fundamentals of MATLAB. This should give you the skills you need to answer al...

5 years ago | 0

Answered
How to generate code for a picture of this fish
I suggest going through MATLAB Onramp to learn the fundamentals of MATLAB. This should give you the skills you need to answer al...

5 years ago | 0

Answered
How to generate code for a picture of this spiral color wheel
I suggest going through MATLAB Onramp to learn the fundamentals of MATLAB. This should give you the skills you need to answer al...

5 years ago | 0

| accepted

Answered
How do I use numbers from an uploaded file in an equation
You need to capture the values in a variable, then use that variable in your calculations. I think you would benefit by complet...

5 years ago | 0

| accepted

Answered
"Unrecognized function or variable" error when using fminbnd on an anonymous function
Here, h is already defined as a function handle, so the '@' is not necessary, and is in fact causing the error. Try this. f=@(...

5 years ago | 1

Answered
Map with Swedish borders and size of marker
MATLAB does not have a shapefile of just Sweden. You can find what is available in the following two locations (windows 10 and M...

5 years ago | 0

Answered
Rename a folder with files in it
The movefile function can rename folders with files in them (I just tested on a folder on my computer) but it does depend on the...

5 years ago | 0

Answered
Writing two vectors side by side into an excel file
You can use writematrix or writetable for this. See this answer for an example of writing two vectors side-by-side to a csv file...

5 years ago | 0

Answered
Latex to make a figure annotation
Just my opinion, but MATLAB does not support all LaTeX libraries. I built your array interactively in the equation editor and th...

5 years ago | 1

| accepted

Answered
Alternating color code in a dotted Circle
All markers in a series will have the same color, so the best approach I can think of is to plot two separate series, one with r...

5 years ago | 0

| accepted

Answered
Problem with *txt File Format conversion using Matlab
I would use readtable to load your text file. In newer releases, this will automatically read in the first column as a duration....

5 years ago | 0

Answered
There is an error in my code
Look at line 17: invL = [L eye(n)]; You are concatenating L and eye(n) horizontally. The error message is again telling you wh...

5 years ago | 0

Answered
Maximum recursion limit of 500 reached.
You have given your plotting function and your odefunc the same name. This is causing ode45 to call your function recursively (c...

5 years ago | 0

Answered
Error "Matrix dimention must agree"
The error message is telling you what the issue is. You are trying to compare two matrices that do not have the same number of e...

5 years ago | 0

| accepted

Answered
There are two errors in my code. Can someone know how to edit it to maker it run? Thank you!
The error message appears to show the reason for the error. Your matrix A must be square (3x3 or 4x4) in order to use inv. if i...

5 years ago | 0

| accepted

Answered
how to convert a matrix into a vector
Use the colon a=rand(2,5) A = a(:)

5 years ago | 0

| accepted

Answered
Convert relational unknown data to matlab
See Ch 4 of MATLAB Onramp.

5 years ago | 0

Answered
How to find frequency of wave data
I would probably try to use findpeaks. With the right setting, you can use that to count the number of peaks. You could also do ...

5 years ago | 0

| accepted

Answered
Appending strings to array
The problem is likely due to a mismatch in data types. str contains chars, but l is defined as doubles. So when you assign a cha...

5 years ago | 1

| accepted

Answered
Drop all entries of a category based on one condition
nRows = height(crsp) for i = 1:nRows if crsp.PRC(i)<1 crsp(crsp.CUSIP==crsp.CUSIP(i),:)=[]; end end It mi...

5 years ago | 0

| accepted

Answered
Differential dot in legend using Tex interpreter
I do not believe \dot is supported by the tex interpreter. You can find a list of the supported Greek letters and special charac...

5 years ago | 0

Answered
Change Variable Names of a Table
Variable names exist in the properties of the table. tblName.Properties.VariableNames Use indexing to set just the names you w...

5 years ago | 0

| accepted

Answered
Menu bar App Designer
Us the TabGroupSelectionChanged callback function to set the visibility property of the panel to on/off. Here's what the code mi...

5 years ago | 1

| accepted

Answered
Using "fullfile" to add a predefined date to a filename
You have put 'Date' in quotes, meaning it is appending the text "Date" to your filename, not the date string you have created. ...

5 years ago | 0

Answered
(eyediagram) Why I cannot get the eyediagram?
The issue appears to be with how you create out_stable. The result of this is a straight line. If you create an eyediagram using...

5 years ago | 0

Load more