Community Profile

Contact

Top 5% contributor

I would use a loop and the unique function. http://www.mathworks.com/help/matlab/ref/unique.html I'm not sure you problem...

0

Answered 2 years ago

I think you can change which numerical method you use, in order to choose one that finds your value faster. There's a few that a...

If I want a timestmap of the format string such that 'mm/dd/yy HH:MM:SS PM' is my format into matlab's numerical number, dat...

1 Answers

Asked 2 years ago

It looks like you should use a while loop instead of trying to implement this manually.

Try these: clear all (clears all variables) close all (clears all figures) clc (clears the command window)

To transpose a variable in matlab, use x=transpose(y) or x=y'. The simplest way to do this with small data sets is likely def...

Is there any way to use less parenthesis? 32 sets seems like a large amount-maybe look into how MATLAB uses BEDMAS to simplify. ...

You can also do X()=12 where inside the brackets you have your dimensions of X current, plus one (ie defining a specific variabl...

140188 views

Responded 3 years ago

This works for the method I'm trying to use, but I also want to index where those zeros were in order to adjust the correspondin...

40540 views

Posted 3 years ago

I went back to this method since I have different dimensions (ie plotting a year's data with a leap year), but the histogram plo...

10355 views

Responded 2 years ago

Thank you!!! This should be put in the help section for 'hist' if possible as it was exactly what I needed.

If you look up cell notation, I think it works the same but you must use curly brackets {} instead of regular ones. Hope this he...

4679 views

With your plot open, click edit->figure properties. Essentially a GUI comes up that can edit your plot. You need to save it as a...

2009 views

Have you tried title(plotTitle, FontSize, '16') directly, or changing it in the graph editor that matlab has? Maybe there's a pr...

I'm not sure how else you would do this but if you're having a hard time getting this to work, you might be able to click edit->...

1979 views

http://www.mathworks.com/help/techdoc/ref/sortrows.html Why would sort not do this? The intention is for it to sort by value, s...

1930 views

Haha nope, I was looking at the sizes and they were identical which is why I was confused, but maybe I was forcing it to be the ...

1701 views

This was exactly what I was looking for!! Thank you!! And I'm taking this from a database that a student created many years ago...

output = Where the cells contain : output{1,2} Gives a list of strings which has one row and MANY columns. Does this help...

By 'embedded cell' I mean a cell of cells, or a cell that contains another (set of) cells. I'm not sure what you meant by the la...

This does not work, because my 'output' is an embedded cell. IE, it is a cell containing a vector and a vector of cells. Each ce...

I ended up solving the problem and just used loops instead. The answer to those who are interested is: for a=1:length(output) e...

Sorry, the original string should be: wanted_matrix(1:length(output),1:length(output{:,2}))=str2num(output{1:length(output),2}{...

I have a single cell consisting of a vector and an array. ouput{:,2} is what is giving me problems. This cell calls a cell arr...

Can you show a sample of the code that you are trying to use, and a sample of what you expect to get back? Try looking to see i...

1454 views

Thank you, I should be able to adjust this to suit my needs.

1263 views

Also, this will be happening in a loop so a versatile answer is appreciated...

I have a vector, say A=1:10, where I want to expand and insert a value into such that: A=[1 2 3 4 5 X 6 7 8 9 10] So X can be ...

I think you need to be more specific as to what you're asking for help with. What is the input 'Out'?

995 views

Error using ==> horzcat CAT arguments dimensions are not consistent. Error in ==> Energy_Yield_Model at 210 ans = ans = I'...

679 views