回答済み
Is it possible to add a new Marker Specifiers?
Again one of the great mysteries of what TMW sees as useful enhancements versus what they actually implement... :( There is, ...

8年以上 前 | 0

回答済み
Two for loops running simultaneously
b = get(handles.edit1, 'String') N=int(str2num(b)*60); temp=zeros(N,1); for d=1:N temp(d)= readVoltage(a,'A15');...

8年以上 前 | 0

回答済み
creating a vector from data in a large array
Start with the "brute force, straightahead" solution... dN=65; % the magic number between observations-...

8年以上 前 | 0

回答済み
Fill area smaller than treshold1 and greater than threshold2
|area| is in essence a stacked horizontal bar plot; not a filling routine. Use |fill| instead-- hF(1)=fill(t,max(yi,th1), ...

8年以上 前 | 0

| 採用済み

回答済み
How do you import a .log file and put the information into various columns with headers?
>> [~,t]=xlsread('shem.csv'); % about the most easiest way to read csv with mixed data >> t=t(2:end,:).'; % ge...

8年以上 前 | 1

| 採用済み

回答済み
Number to datetime from textdata
If I put your exact text in a file then >> fmt='%{%yyyyMMddHHmmssSSS}D' fmt = %{%yyyyMMddHHmmssSSS}D >> fid=fope...

8年以上 前 | 0

| 採用済み

回答済み
how to save every iteration into workspace
n=length(filesStruct1); % presuming filesStruct1 is returned from DIR() alpha=cell(n,1); % listen to the...

8年以上 前 | 1

回答済み
How to remove missing/non existing days in a graph?
This ? appears closely related to <https://www.mathworks.com/matlabcentral/answers/385639-plot-financial-data-continuously-in-ti...

8年以上 前 | 0

回答済み
Need to access only few samples from and an array
_"...I do not wanted [sic] index position 9,10,11,12 to be processed."_ If you mean original indices then just remove them fr...

8年以上 前 | 0

| 採用済み

回答済み
I want my code to read from a csv file, the csv file (dee1) has 2 columns which the first one is Time_stamps and second one is load value . but the output of the function only read time_stamps. what should I do to fix it ?
The format string doesn't match the record; particularly the datetime format... >> fmt = '%{M/d/yyyy HH:mm}D %f'; >> dat...

8年以上 前 | 0

回答済み
How to filter rows with respect to specific entry?
>> A=[1 2 3 4 5;0 1 2 3 4;5 6 3 2 1]; >> A(A(:,3)==3,:) ans = 1 2 3 4 5 5 6 3 ...

8年以上 前 | 1

| 採用済み

回答済み
Can a format string be supplied to detectImportOptions?
Use |setvaropts| to control properties associated with particular variables; specifically the |DatetimeVariableImportOptions| p...

8年以上 前 | 0

| 採用済み

回答済み
How to effectively run loops and save time in computation? I have a matrix of size 'm' and run five loops from 1 to m.. How to optimize the code and save time of calculation for the code below
Innermost loop for j=1:m if j~=i x(j)=abs(Ohmega(i,k)+Ohmega(j,k)); end has "issues" -- first...

8年以上 前 | 1

| 採用済み

回答済み
Axis limits when one bound is set to inf
Have to allow as how I've never set an axis limit to +/-Inf...not having that large of a monitor. :) I didn't go look and see...

8年以上 前 | 0

回答済み
how to get the second variable in a function?
[A,B] = par(20,5); The function has to have somewhere to "put" the other output...

8年以上 前 | 0

回答済み
Undefined operator '>' for input arguments of type 'cell'. Error in sif (line 374) if (hist(i,1)> a)
Apparently _rt_ is a cell array containing a cell. Hence need to "use the curlies, Luke!" to dereference the content. Try ...

8年以上 前 | 0

回答済み
How to open text files with different names?
Presuming you have a plate number variable _platenum_ fname=sprintf('%dplate.txt',platenum); load fname Unless this d...

8年以上 前 | 0

回答済み
How to import specific part of text file when you do not known the size and which lines is the one you want to import
OK, here's a basic function to read any section of the file returning the data in that section plus optionally the X,Y coordinat...

8年以上 前 | 0

| 採用済み

回答済み
How do I extract elements of an array having their indexes in another array?
Instead of looping, just use Matlab logical indexing...your solution should look like idx=[]; %get the index of all values ...

8年以上 前 | 1

| 採用済み

回答済み
How to control Minortick number
See the numeric ruler for some additional control over axis appearance not made visible by the _axes_ object... <https://www.mat...

8年以上 前 | 0

回答済み
Good afternoon. Please I need help. I have my data arrange as (Lat Lon Z) on a regular grid. I want to used this data on regular grid to plot contour without any interpolation of any kind. How do i do it and how best can I arrange my data. Thank you
|*countour*| only works with _Z_ data as a matrix; an element for each _X_, _Y_ pair in the input coordinate locations; it doesn...

8年以上 前 | 0

| 採用済み

回答済み
Time Format: import unique format to be able to plot
Convert to |datetime| type; unfortunately, the |uiimport| and friends aren't enabled to read time format strings...but, that's e...

8年以上 前 | 0

回答済み
Stretching axis to observe data
Well, since your monitor probably has only roughly 2000 pixels/line even if you could draw your plot with every bit for the grap...

8年以上 前 | 0

| 採用済み

回答済み
I have to create a function that returns two outputs. The outputs need to be a scalar and a column vector but my function only outputs the scalar. How can i get it to output the vector?
Well, it's a fairly useless function with everything hardcoded inside instead of being passed, but I presume that's because you'...

8年以上 前 | 0

回答済み
How to add a top x-axis related to non-linearly to the bottom x-axis?
Similar to another just answered <https://www.mathworks.com/matlabcentral/answers/380174-how-to-plot-a-graph-for-one-set-of-data...

8年以上 前 | 0

回答済み
How can I fix this error? "Func returns a vector of length 2, but the length of initial conditions vector is 3. The vectors must have the same number elements"
OK, that makes it _much_ easier...I ran your code and put a breakpoint at the |end| in |cassens|. Indeed, at that point |dydt...

8年以上 前 | 0

| 採用済み

回答済み
using IF and && together
The "why" is because the |&&| operator "short-circuits"; IOW, if the first condition is met so the answer is known from the firs...

8年以上 前 | 0

| 採用済み

回答済み
How to find value of x for each w in W without using a for loop?
_"... How would I do it without the loop?"_ Call the function with the *vector* argument _w_ and inside the function # Set...

8年以上 前 | 1

| 採用済み

回答済み
How to plot an array in negative axes
Ah...ok, now I see...presuming the array is assumed to match box boundaries, just define _X,Y_ to match the dimensions you want-...

8年以上 前 | 1

| 採用済み

回答済み
What is missing from MATLAB?
|TABLE| type needs display format by variable similar to the |DATETIME| object. Having to set global application format is a nu...

8年以上 前 | 0

さらに読み込む