Answered
how do i put multiple data into an equation using for loop
Your for loops are not working as you expect because the syntax is incorrect. You can learn more and see some examples on the do...

5 years ago | 0

Answered
How to display data from a table using fprintf?
See the various ways to access data in a table here. I think you want this DATE = datetime(2020,06,19,"Format","MM/dd/yy"); D...

5 years ago | 0

Answered
how to manipulate ytick?
First, let's clarify that you want to modify the xtick values, not ytick. The best approach is to have your x values be datetim...

5 years ago | 0

| accepted

Answered
ploting coordinate smoothly with given dataset
I think you meant to use polyfit instead of polyval. However, an n of 60 is a bit ridiculous. I would strongly recommend pickin...

5 years ago | 0

Answered
Adjust Plot to Center on a specific point
I'm not aware of a function for doing this, but what is at the center of a plot is controlled by the axes limits. With a little ...

5 years ago | 1

Answered
Mouse zoom box collapses to zero width
Hi Otis. I discovered the following. This behavior is intentional. When the ratio of your width to height reaches some critical...

5 years ago | 0

| accepted

Answered
Boxplot inside a bar graph.
Use hold on to place multiple plots on the same axes. Always pair it with hold off when you are complete. If you want to add po...

5 years ago | 0

| accepted

Answered
How to find which equation produced a specific answer in a for loop?
Ideally you would be able to tell from its location in the array. That information gets jumpled somewhat when you sort, but if y...

5 years ago | 0

| accepted

Answered
another app designer tooltip bug?
I played around for a bit trying to duplicate this behavior without any success. If you are still seeing this behavior, I sugges...

5 years ago | 0

Answered
How to extract boundary of a set of 2D points
I can't describe why it picked those two points to go haywire on, and why it only appears at certain multiples (not when multipl...

5 years ago | 0

Answered
2020B causing panels to vanish in App Designer, potential bug?
If you haven't yet done so, contact Customer Support

5 years ago | 0

Answered
Livescipt Potential Bug: Can't add code, sections, etc. Only text.
If you are still experiencing this issue, please contact MathWorks support: http://www.mathworks.com/support/contact_us/

5 years ago | 2

| accepted

Answered
Date and Time from Text with Literal Characters, Part 3
date1 = datetime('Jan 1 2020','InputFormat', 'MMM dd uuuu','Format','M/d/yy'); date2 = datetime('Jan 5 2020','InputFormat', 'MM...

5 years ago | 0

| accepted

Answered
How to convert time column from hours to decimal days to HH:MM:SS
I thought of 2 ways to do it. 1. Treat the times in first column as durations in days, and add it to Jan 0, 2014 opts = detec...

5 years ago | 0

Answered
Shift array to left or right, keep length and feel zero empty area
I'm not aware of a function that will do exactly what you describe. However, the final result is still possible if you are willi...

5 years ago | 2

| accepted

Answered
normalise a column in a matrix
Normalize and making all its values equal 1 are two different, non-equivalent processes. Assuming you want to set all values to...

5 years ago | 0

Answered
GUI cost button result MATlab
You'll need to set the Strng property of the static text box. Something like this should work (untested). I'm not sure what tag ...

5 years ago | 1

| accepted

Answered
plot(x)
If you don't pass in two inputs, it will assume the input is the y values, and will plot them against their index number. You ca...

5 years ago | 1

Answered
How can I exclude specific data points from a data file?
I'm assuming you've already loaded the data file into the variable rawData in MATLAB. This is untested. rawdata(rawData(:,1)==1...

5 years ago | 0

Answered
How to read a txt file of data into code.
Easiest way is to load using one of MATLAB's functions (readmatrix?). Then transpose the matrix so that rows are columns, and co...

5 years ago | 0

| accepted

Answered
Please help.. Array indices must be positive integers or logical values (Error is coming from line 122) - Highlighted in bold.
Two errors I see in your equation e(T(I))^2 f(MOISTCONT(I)*T(I)) Perhaps you meant to include a multipy after e and f? Otherw...

5 years ago | 0

| accepted

Answered
matrix entry into function
Also, share the complete error message (all the red text), My suspicion is that x(t+1) does not exist. x=1:5; t=5; x(t+1)-x(...

5 years ago | 0

Answered
error is “ Values must be a double sclar within the range of limits”
From the math I see, I suspect w1 is a double scalar. Still, you should make sure that is the case. If so, that means the error ...

5 years ago | 1

| accepted

Answered
combining 5 rows into one matrix
mat1=1:10; mat2=11:20; mat3=21:30; mat4=31:40; mat5=41:50; % Combine using square brackets and transpose to make 5x10 new...

5 years ago | 1

Answered
Extracting every nth and (n+1)th element
I'm not aware of any slick way to do this. I'd combine two arrays, one from 10:10:101, and one from 11:10:101. n=10; A = (1:10...

5 years ago | 1

| accepted

Answered
Machine learning onramp, module 3.3, task 3
Each task has a "Hint" and "See Solution" option .Use those to either get started or see the expected solution.

5 years ago | 0

| accepted

Answered
How can I interpolate a set of non-uniform data [x,y] to match another set of non-uniform data [y,z] so I can get [x,z] and [y,z] at the same z values?
interp1 is designed to work with the independent variable (angle here), but to get what you want, you would need to interpolate ...

5 years ago | 0

| accepted

Answered
How to use external function to plot a graph in GUI or app designer
A couple things stand out. First, your function has no inputs, so app, x, and y do not exist within the scope of your function. ...

5 years ago | 0

| accepted

Answered
torque vs speed characteristics of dc compound motor(additive series) on simulink.
Does this post help? How do I model a Compound DC machine using SimPowerSystems 4.1.1 (R14SP3)?

5 years ago | 0

Load more