Answered
How to find corresponding x values for array of y values
Use the following syntax [M,I] = min(___) When you are taking the min of an mxn array, I is a vector containnig the row number...

5 years ago | 0

| accepted

Answered
Saving a file in a relative directory on the current .m file.
Yes, relative paths are possible ./folder/file.m save path begins in the current folder ../folder/file.m save path begins i...

5 years ago | 4

Answered
Subtraction not calculating correctly
You may need to clear your workspace. When I run your code, the result is [0;0] A=[2 -3; 6 3]; c=[-5; 1]; X=inv(A)*c; AX=A...

5 years ago | 1

| accepted

Answered
No Output for loop?
You could could potentially display 1.000000000000000e+12 values. I would seriously reconsider doing that. The reason nothing i...

5 years ago | 0

| accepted

Answered
I wrote a code which is a pattern of popupmenu and edit and static Iu control but it does not work, would you help me?
Some issues to take into consideration. You appear to be trying to implement the nested function approach. I would suggest spli...

5 years ago | 0

| accepted

Answered
Trying to get the 2nd functions to plot to the right of the first.
Your X values determine where your plots appear horizontally. Adjust the X values of your second plot command to start at the ma...

5 years ago | 0

Answered
Repeatedly entering and exiting debug mode speeds up script execution
I suggest submitting a customer support request.

5 years ago | 1

Answered
Calling a user defined function on a MAC computer
There is no platform-dependent differences in how to call a function. However, in order to find the function, the function must ...

5 years ago | 0

Answered
Extract vertical line numerically from curve plot
Can you? Sure. I'm not aware of anything that will do this for you automatically, but if you have the X and Y data of the curv...

5 years ago | 0

Answered
Creating a base line for my graph
Look into using yline. yline(yvalue,LineSpec)

5 years ago | 0

| accepted

Answered
unable to plot diagram in MATLAB
Work on creating a sin wave that generates the amplitude and frequency you need first. Once you have that, set all y values corr...

5 years ago | 1

Answered
Error in readtable function.
readtable appears to be working just fine. There are, however, some errors with your code. There are only 7 rows of data, yet ...

5 years ago | 0

| accepted

Answered
How many Workspace's we have in MATLAB ?
In MATLAB, you have your base workspace and then a workspace for each function called. See here: Base and Function Workspaces ...

5 years ago | 0

Answered
Change label color of the "Edit field (Numeric) element in App Designer
The label is part of the edit field. Clicking on the label will open the properties in the inspector. Under Font and Color, set ...

5 years ago | 0

| accepted

Answered
How can I plot a three dimential graph according to following requirements?
It seems your instructor has told you how to get help already. My only addition would be to also look at scatter3 if the end res...

5 years ago | 0

Answered
fwrite doesn't actually save the data I want to save.
I've made the same mistake before. The fwrite function writes binary data. Specifying "double" just tells it how many bytes to u...

5 years ago | 0

Answered
How to insert column data into an array?
Ch 5 and Ch 13 of MATLAB Onramp.

5 years ago | 1

| accepted

Answered
Read Excel file, specific sheet and able to define the variable names within the code, and not read first row
Try this opts = detectImportOptions(filename); opts.Sheet = "Property"; opts.VariableNames = ["Wavelength","Property"]; data...

5 years ago | 0

Answered
How to hide or delete the legend that is not needed
Use line objects as inputs to legend, telling it which lines to include in the legend. x=1:10; y=@(x,a)((x-5)/a).^2; p1 = p...

5 years ago | 0

| accepted

Answered
I can't use Document command to generate a Report
With the documentation example working, try using your template again. Do you still get the same error? If so, how did you crea...

5 years ago | 0

| accepted

Answered
Readmatrix tool on column not separted by a comma
You could try textscan. A = textscan(file,'x = %f y = %f') If that doesn't work, consider attaching your file to your post usi...

5 years ago | 0

Answered
My code is Unable to read my table that is in workspace. Any Help will be much appreciated
Your file appears to be missing an extension. What type of file is WH? Try adding that to your readtable command. For example, i...

5 years ago | 2

| accepted

Answered
How to compute the frequency of hourly/daily observation?
Your spreadsheet is empty. I would load the data using readtable. I would then create a new column and use datetime to convert...

5 years ago | 0

| accepted

Answered
Plotting path traced by a point in an animation
I would suggest pulling all the calculations out of the for loop. You can take advantage of MATLAB's vector math to calculate al...

5 years ago | 0

| accepted

Answered
How can I download the 30 Day Trial Version?
Start by requesting a free trial at this page. Check your account page to see that the trial has been added to your account. Th...

5 years ago | 0

| accepted

Answered
Plot data against time
Convert collumn 1 to a datetime and then just use the plot command. See Ch 9 of MATLAB Onramp if you need more help with plottin...

5 years ago | 0

Answered
got error Undefined function 'mpower' for input arguments of type 'table'.
You must be passing in a table data type, but mpower only accepts array. See this page on how to access data in a table. Use one...

5 years ago | 0

Answered
live script to pdf without code output in the file
If I clear the output in my live script (View > Clear all output), then use the export to pdf option (Live Editor > Save > Expor...

5 years ago | 1

| accepted

Answered
Extract output data from meshgrid input
Always more helpful for us if you share 1) your data and 2) the complete error message (all the red text). This example on the...

5 years ago | 0

| accepted

Load more