Question

How to read text line and assign value to variable?

Many tech files have header like this: int display_order = 1; int bigendian = 0; float imagescale = 1.00...

1 year ago | 1 answer | 0

Question

Multiple variable Neural Network prediction.

The problem is to predict the trajectory in space. Obviously, there will be three variables (x, y, z) for both input and out...

1 year ago | 0 answers | 0

Question

How to write script for coupled multiple time-series prediction using NN?

There are 3 time progression curves, coupled with unknown factors. It's needed to predict 3 numbers (short time one point is OK)...

1 year ago | 0 answers | 0

Question

Deploytool, which folder to distribute?

After packaging, a few folders produced. Which is the right folder to distribute, assuming the user doesn't have Matlab installe...

2 years ago | 1 answer | 0

Question

How to find the erro for fitted parameters?

When using 'lsqnonlin', 'lsqcurvefit', 'fitnlm', 'nlinfit', etc.. It produces optimized parameters. How to find the error of th...

2 years ago | 1 answer | 0

Question

How to display images in 2 color map side-by-side?

I want to display 2 images (or the same image twice) matrix side-by-side (tightly) with say, imagesc, with different color maps....

2 years ago | 1 answer | 0

Question

How to set Marker in loop

This is what I combined from this forum: set(0,'defaultaxeslinestyleorder',{'+','o','*','.','x','s','d','^'}); hold all ...

2 years ago | 2 answers | 0

Question

Warning to save when saving workspace.

For this code: savename = sprintf('%s_%s.mat',fname1,fname2); save(savename); It produces a warning: "Warning: Figur...

2 years ago | 1 answer | 1

Question

How to reshape matrix without loop?

Want to rearrange the matrix A(a,b,c,d) to B(b,c1,c2,d,a), where a,b,c,d are dimensions, c=c1*c2. If known c1=3, for example, B ...

2 years ago | 1 answer | 0

Question

fprintf size without knowing the dimension

How can I print the size of the array in one row without prior-knowing the dimension of the array? fprintf(' %d\n',size(arr...

2 years ago | 1 answer | 0

Question

How to print size of array?

The array size need to monitor. It's simple and effective with size(x) but no name or location. It would be nice to print if out...

2 years ago | 2 answers | 0

Question

How to simultanously create 2 subplots?

Learned from Matlab, this worked: figure; for k = 1:8 h(k) = subplot(2,4,k); end figure; for k = 1:8 J(k...

2 years ago | 1 answer | 0

Answered

How to get indexed pixels from set of images?

Will this single loop way work? And a loop-less way would be more "elegant".

How to get indexed pixels from set of images?

Will this single loop way work? And a loop-less way would be more "elegant".

2 years ago | 0

Question

How to get indexed pixels from set of images?

A set of images a(x,y,n); n images, each image has a size of (x * y); A known index map: imind(x,y), size of the image with eac...

2 years ago | 2 answers | 0

Question

Write matrix with Matlab and Read with C?

I have a matrix (100 rows and 5 columns) that want to write it as *binary* and read with C code in the way that I can read it in...

2 years ago | 1 answer | 0

Question

How to extract data from a slice?

The example in "doc slice" is very good: hsp = surf(linspace(-2,2,20),linspace(-2,2,20),zeros(20)+1); rotate(h...

3 years ago | 1 answer | 1

Question

Can matlab display (plot3, surf, slice, etc...) with dicom LPR convention?

If patient is in supine position (face up), feet first, the dicom coordinate is LPS, X+ is to the left, Y+ points down and Z+ to...

3 years ago | 1 answer | 0

Question

How to have labels stick to axis?

<</matlabcentral/answers/uploaded_files/64342/labels.jpg>> On 3D kind of graphics, the labels are horizontal, like attached. ...

3 years ago | 1 answer | 0

Answered

Matlab crashes when saving fig

That's not the issue. When exam a figure (just plot or opened) and decide to save, then click on file->save or save as, the ...

Matlab crashes when saving fig

That's not the issue. When exam a figure (just plot or opened) and decide to save, then click on file->save or save as, the ...

3 years ago | 0

Answered

How can I generate a plane to use with the SLICE command which is appropriately sized in MATLAB 7.8 (R2009a)?

How to extract the data from this slice for other use? and for example to display the matrix using image as below (this one was ...

How can I generate a plane to use with the SLICE command which is appropriately sized in MATLAB 7.8 (R2009a)?

How to extract the data from this slice for other use? and for example to display the matrix using image as below (this one was ...

3 years ago | 0

Answered

Extract slice data from 3D scalar field into a N by M array for integration in Matlab

I second the question and hope to receive answer. Thanks.

Extract slice data from 3D scalar field into a N by M array for integration in Matlab

I second the question and hope to receive answer. Thanks.

3 years ago | 0

Question

How to add constant in fit or nlinfit?

Didn't use fit or nlinfit before. Looking into examples, all variables are to be fit. How to add constants (that are as input...

3 years ago | 0 answers | 0

Question

How to prevent Matlab to crash?

Since 2 versions ago, the Matlab crashes every day. Sometimes it crashes when start to run script by clicking the large triangle...

3 years ago | 0 answers | 0

Question

Index exceeds matrix dimensions

A six dimension image/matrix: for n6 = 1:image_size(6) img5 = imgin(:,:,:,:,:,n6); imgout(:,:,:,:...

3 years ago | 2 answers | 0

Answered

What frustrates you about MATLAB?

The Matlab Crashes at least once a day for no reason since a year ago, data and script loss and so frustrating. Before there was...

What frustrates you about MATLAB?

The Matlab Crashes at least once a day for no reason since a year ago, data and script loss and so frustrating. Before there was...

3 years ago | 0

Question

Matlab crashes when saving fig

In many cases, when saving the figure, the matlab crashes. It happens several times a day. It wasn't the case before 2015 versio...

3 years ago | 3 answers | 1

Answered

waitbar color, 2016a is broken red; how to set to older continuous green?

<</matlabcentral/answers/uploaded_files/55440/waitbar_color.jpg>>

waitbar color, 2016a is broken red; how to set to older continuous green?

<</matlabcentral/answers/uploaded_files/55440/waitbar_color.jpg>>

3 years ago | 0

Answered

How do I change the color of the bar in a WAITBAR in MATLAB 7.5 (R2007b)?

this still gives broken red, not green.

How do I change the color of the bar in a WAITBAR in MATLAB 7.5 (R2007b)?

this still gives broken red, not green.

3 years ago | 0

Question

waitbar color, 2016a is broken red; how to set to older continuous green?

In 2016a waitbar had red color with discrete marks. Older version is continuous green bar. How to set the waitbar to the old...

3 years ago | 3 answers | 0

Question

How to add image frames (interpolatin of image frames)?

m frames of images; now want to add (interpolate) some frames in between to make it n frames (n>m); There was "morphology" sof...

3 years ago | 0 answers | 0