Respondida
How to exctract specific elements from .txt file?
d= [' 4; 65; 7.5; MGK ; 4; 5; 66; MARKUS; 46.63641; 65' '11; 26; 5 ; LEON ; 78; 93; 88; LUTHER; 50.3554 ...

más de 3 años hace | 0

Respondida
I plotted 2 plots each with error bars, but the legend is not showing the symbols correctly, how to solve it?
a = [1:5 ]; b = [6:10]; x = [1:5 ]; mu1 = mean(a); cig1 = std(a); err1 = cig1; mu2 = mean(b); cig2 = std(b); err2 = cig...

más de 3 años hace | 0

| aceptada

Respondida
number of significant digits for the coefficients in curve fitter (polynomial, with two degree)
All are estimated to full double-precision; the number of digits that are displayed is solely dependent upon how you look at the...

más de 3 años hace | 2

Respondida
how to print datetime in fprintf
We don't have sufficient data to reproduce the problem -- we don't have definitions of ProfName, ProfDateNum, nor indNaN Guess...

más de 3 años hace | 1

| aceptada

Respondida
try...catch for memory full error in imaq toolbox ?
Well, you probably can manage to do it from the above, but it's peculiar as Bruno notes...observe if we take your monitoring dat...

más de 3 años hace | 0

Respondida
How to convert matrix or vector in Matlab workspace into C/C++ array usable in ".c" file?
a=1:5; vname='a'; precision=16; fmt=['uint%d_t %s={' repmat('%d,',1,numel(a)-1) '%d}']; c_code=sprintf(fmt,precision,vname,a...

más de 3 años hace | 0

Respondida
Why is there such a big difference between the fitting results of 'exp2' and the same form of custom function?
The biggest difference is probably found in the documentation under the 'Nonlinear Least-Squares Options" parameter 'StartPoint'...

más de 3 años hace | 1

| aceptada

Respondida
csv file wrong numbers filled with MATLAB
"(attached a screenshot of the function definition)..." Don't use images for code; attach the text and format the code. Nobody...

más de 3 años hace | 0

| aceptada

Respondida
How to change the Xtick direction of ONLY one of the two (top or bottom) X-axis lines ?
% my plot figure plot(1:9) % properties hAx1 = gca; hAx1.XAxis.TickDirection='out'; hold on hAx2=axes('Position',hAx1.P...

más de 3 años hace | 1

| aceptada

Respondida
For Loop Starting at Zero
H = 0.1; I = 200; Y = 0; BI = zeros(I,1); b = pi; for i = 1:I b = fzero(@(b)(b*tan(b)-H),b); BI(i,1) =...

más de 3 años hace | 0

Respondida
Make changes to multiple files simultaneously?
Notepad++ has a feature that may work if you can make the replacement with a [regexp] expression as a substitution. Alternative...

más de 3 años hace | 0

Respondida
Reading a file and loading variables using function
A = 10; B = 30; C =15; A_Threshold = 70; B_Threshold = 80; C_Threshold = 85; save sample.mat A B C A_Threshold B_Threshold...

más de 3 años hace | 0

Respondida
Scatter Plotting With Custom Markers?
There's no way I'm aware of to use an image as a marker in a line or scatter object, There's a <FEX submission> that will let y...

más de 3 años hace | 0

Respondida
Addition of two plots (Coordinates)
You have to add the starting location of your subsection to the returned location if you subset the overall signal, The loop yo...

más de 3 años hace | 0

Respondida
FOR loop count to the end but the length of the array is different
Observe the following... y(7,1)=10 Note that MATLAB created the array of seven values and filled the last entry. In your orig...

más de 3 años hace | 0

Respondida
How to put non repeated elements of a symmetric matrix in a row vector?
"... the matrices are symmetric with names of z1,z2,...z571;" First, do NOT create sequentially-named variables such as that; f...

más de 3 años hace | 1

Respondida
What is the purpose of zero function?
function CoherentState=CoherentStatefunc(alpha,DIM) CoherentState=zeros(DIM,1); for n=0:(DIM-1) Coh...

más de 3 años hace | 1

Respondida
How to write function for two variables
I'd approach writing the functional something more like-- function y=Y(C,x1,x2) % Magic function Y=fn(C, x1, x2) from unknow...

más de 3 años hace | 0

| aceptada

Respondida
Combine text files with continues time stamp
Can you clean up the malformatted file format first? It uses "," for both the field delimiter as well as the decimal place indi...

más de 3 años hace | 0

Respondida
Can I run all cases of switch ? if not, is there another way ?
That's just putting the switch block inside another loop... ... M=5; % outer loop counter N=3; ...

más de 3 años hace | 1

| aceptada

Respondida
use two indexes at the same time in a for loop
for i = 4:5 for j = 1:2 M(i,j) = 0; end end If it weren't a contstant on the RHS and the array was only the...

más de 3 años hace | 0

| aceptada

Respondida
Error with the matlab curve fitter app
The CurveFitter App is simply not designed to be used in this manner. To do this, you would create a fit object directly with t...

más de 3 años hace | 0

Respondida
How to cut out part of x axis in scatter plot ?
Unfortunately, MATLAB doesn't have the facility to create either split axes to show such a gap or to condense a section of an ax...

más de 3 años hace | 0

| aceptada

Respondida
Extracting rows form a matrix with indices.
M=[[1:24].' randi(100,24,5)]; % a sample array b=[1,4,7,8,10,12]; % the indexing vector N=M(b,:) ...

casi 4 años hace | 0

| aceptada

Respondida
how can i define legend for bar3
Z=randi(6000,4,5); X=["EVA"+[1:4].'; "DNO"]; Y=[125:-25:50]; hB3=bar3(Z); hAx=gca; hAx.XAxis.TickLabels=X; hAx.YAxis.TickL...

casi 4 años hace | 0

Respondida
two x-axis plot
Without all the niceties, but to illustrate putting the three points on two axes and set ticks such that grid lines will match u...

casi 4 años hace | 0

Respondida
Save matrix from "writematrix" to clipboard
You've got to create the entire text as a string or char() variable. It would be more efficient to avoid the intermediary disk ...

casi 4 años hace | 0

| aceptada

Respondida
How can I put an array containg multiple numbers into a matlab table?
Just use <table> directly to insert variables to a table... files={'filename01.ext';'filename02.ext'}; coords=[randi(1000,1,4)...

casi 4 años hace | 0

Respondida
How do you remove the exponent from all y-axes on a stackploted figure?
Actually, the above isn't true; it turns out you CAN get to the underlying axes objects and they are still "plain, ordinary axes...

casi 4 años hace | 0

Respondida
How do you remove the exponent from all y-axes on a stackploted figure?
Some things aren't possible; that's one....see the discussion about what a stackedplot object is in the doc -- s=StackedLineCha...

casi 4 años hace | 2

| aceptada

Cargar más