Answered
How to work out time from defined time steps in code on plot??
_...My x axis is the diagcounter time steps but I need to have it as time_ Why isn't it then just t=diagcounter*dt; w...

12 years ago | 0

Answered
What is the formula of left devision?
doc mldivide % and follow links therein

12 years ago | 0

| accepted

Answered
ascending numeric data with poisson distribution?
p=1/pi; % make up a p=value y=sort(random('poiss',p,N,1)); % an ordered sample of length N do...

12 years ago | 0

Answered
How can I center my table?
Don't use \t, use fixed-width column of the desired width including the spacing desired and include the flag character ' ' in th...

12 years ago | 0

| accepted

Answered
How can I datetick the x_axis just with the years or decades, when I have data in months ?
Instead of 'keepticks' use 'keeplimits' and use the optional format date string to show the date as desired. If it's more ticks...

12 years ago | 0

Answered
Problems saving a simple mat file
'Xactly what it says; add the optional VERSION parameter if you want to save the variable but then it will not be possible to re...

12 years ago | 0

| accepted

Answered
repeat the same function on multiple variables/handles
*set* accepts a handle vector and operates on each. Just use the array form. Note the property name and value can be cell array...

12 years ago | 1

| accepted

Answered
Putting tables in message boxes
Write the text to a variable instead of std output doc sprintf

12 years ago | 0

Answered
Multiple plots failing can't scale y'y axis properly
OK, here's a starting point... x=(randn(300,1)); % some sample data [N,X]=hist(x); % used hist() so didn't have...

12 years ago | 0

Answered
How do I pass a variable into a function containing a cell array?
But you didn't pass anything to the function. Invoke as Test_Message_Body_Builder(BLength)

12 years ago | 0

| accepted

Answered
How to create a vector from a random point cloud?
nC=size(x,2); % number columns for convenience B=5; % assumed deadband about center containing the minimum dista...

12 years ago | 0

| accepted

Answered
Multiple plots failing can't scale y'y axis properly
_...the CDF plots aren't there ... since the y'y axis is there to measure the frequency of the histograms and its scale is not [...

12 years ago | 0

Answered
Having difficulty reading in a file with csvread()
*csvread* can't because it's not comma-delimited all fields so that's a non-starter Air code-- fmt='%d/d/d d:d:d,%f,%f';...

12 years ago | 0

| accepted

Answered
how to extract data to table or matrix from .fig which has cell type data
_x_ and _y_ are double vectors when you return them with *get*, not cell. There's no need for *cell2mat* as the error is tell...

12 years ago | 1

| accepted

Answered
Help displaying text to a figure.
See links from doc text for all the properties of the text object and examples of using them. _...want it centered.....

12 years ago | 1

Answered
Help displaying text to a figure.
*text* will work just fine, it works in a default axes object. Start with sotoo... s={'(Spade) J875';'(Heart) KT64';'(...

12 years ago | 1

| accepted

Answered
index must be a positive integer or logical.
Keep the time as associated independent vector of same length as the solution vector but numbered from 1:N instead of trying to ...

12 years ago | 0

Answered
Need help inserting numbers randomly into a matrix
doc randperm % I'll leave you to determine how that helps... :)

12 years ago | 0

| accepted

Answered
How to concatenate two or more MATLAB files in a single file?
Can't directly because Matlab arrays can't be jagged but rectangular. You can either augment the shorter to the longest by pa...

12 years ago | 0

Answered
keeping precision when writing to excel
Per the doc for *save*, FORMAT: Specify the format of the file, regardless of any specified extension. Use one of...

12 years ago | 0

Answered
How do I take the determinant of a matrix with one row and one column removed withOUT defining an intermediate matrix?
Not specifically such a syntax, no; and even if there were it would generate the copy anyway so I think you may as well just gen...

12 years ago | 0

Answered
How to create impulse from timestamps?
function= zeros(1,max(a) ... The above is surely _not_ your actual attempt is it? If so, and you named it owing to ...

12 years ago | 0

Answered
Pass parameters to a .exe file and get the exe output data
Read doc system more carefully and all shall be revealed...

12 years ago | 0

Answered
How to remove particular frequency component from a time series??
A) Transform to frequency domain, remove/modify desired components' amplitude, inverse transform, or B) Design a bandstop fil...

12 years ago | 0

Answered
What is the unit of frequency in a spectrogram- Hertz or frequency bins?
The latter and by using your sampling frequency and sample time.

12 years ago | 0

Answered
Extract value from .txt. Weird lay out.
This has been a point of contention of mine "since forever" -- there's no automatic way to read fixed-width column data in C (an...

12 years ago | 4

| accepted

Answered
Macro help writing fucntion in matlab
out = {'fft1' 'fft2'}; for k = 1:2 ... y2 = out(k); y = test_fftNEW(matData,y2); ... _As you can see...

12 years ago | 0

Answered
Plotting Points on a Map
Well, I'm no image guru w/ Matlab, but the basic is simply to load the figure and then add on to it. You don't say exactly how ...

12 years ago | 0

Answered
Storing values from nested FOR loop (array only saves last run of results)
As this is clearly early learning, let's go with a hint-based approach rather than just throwing out an answer -- might make it ...

12 years ago | 5

Answered
What happens to a string after it is written in serial port using fprintf?
It disappears down the serial connection when transmitted...when/how that happens depends on how the port/connection is configur...

12 years ago | 0

| accepted

Load more