Answered
m files as Function Inputs !!
function d = delayMethod(filename1,filename2) eval(filename1); eval(filename2); %data1 and data2 shall be wh...

15 years ago | 0

| accepted

Answered
What is the formula to convert uint8 image to double format ?
By simply dividing all the numbers by 255? See example: I1 = reshape(uint8(linspace(1,255,25)),[5 5]) I2 = im2double(...

15 years ago | 1

Answered
data files processing and plotting
You need to think about the flow of your code. If you want to plot the data of every month into one plot, you need to go through...

15 years ago | 0

Answered
programatically change range of excel sheet depending on data
It can be handled. Before you write the array to the Excel sheet, you can use size() function to get the number of rows and colu...

15 years ago | 1

| accepted

Answered
I didn't understand how put the inputs in tprod function
%% a=rand(3,4,5); b=rand(3,4); c=zeros(size(a)); for i=1:5 c(:,:,i)=a(:,:,i).*b; end Or do you mean thi...

15 years ago | 0

Answered
Simulation Running too slow
I don't have that Toolbox. I remember reading some posts here that the simulation step is variable step. I think you can go to m...

15 years ago | 0

Answered
How to Plot multiple things?
check the value of re_m. It's much larger than [0:.01:3]. That's why you didn't see the red line. Try: figure; plot(re_m, c...

15 years ago | 0

| accepted

Answered
object oriented programming in 2007b
Yes, it is supported. Look for doc->MATLAB->Programming->Classes and Objects. There are examples there.

15 years ago | 1

Answered
k step ahead simulation in simulink subsystems
You can put the rest of the model into an Enabled Subsystem or Triggered Subsystem block. Let the simulation run but only enable...

15 years ago | 0

Answered
How can you program to automatically rename imported data?
What do you mean? rand() is a function, so a=rand(10); values=a; You don't need to change the function. See the link on t...

15 years ago | 0

Answered
3D Surface Plot With Only Vectors
This should work. Adjust the CircleSize for better result. See scatter3() for more options. CircleSize=100; figure;h1=stem3...

15 years ago | 3

Answered
UIGETFILE start in another directory AND choose two default file types
uigetfile(fullfile(pwd,'folder1','*.xls;*.xlsx'),'select file')

15 years ago | 6

| accepted

Answered
Problem: how to get datas from integrator block in simulink
You can always connect the outport of the Integrator block to a Outport block or a To Workspace block to record the data of the ...

15 years ago | 0

| accepted

Answered
Identifying duplicates and deleting duplicates
Use unique( ,'rows') %% v1 =[300 350 350 350 360 370 380 380 380 390 395 405 450 450 450 450 450 450 500 500 500 500 500 50...

15 years ago | 1

| accepted

Answered
List of files sorting
That is because some of your files have 3 digital letters (r_000.mat) in the file name but others have 4 digital letters (r_1200...

15 years ago | 2

Answered
Help for making contour plotting
To plot a contour map, you need to have the data in matrix. Play with the following example to understand what type of data you ...

15 years ago | 0

Answered
timer/waitfor
First of all, waitfor() doesn't have return argument. That is what the error message tries to tell you. Second, I don't think...

15 years ago | 0

Answered
Generating a sequence
Why do you have the for-loop? Based on your pseudo code, it should be: function [sequence] = DeBrujin (order) %debrujinGen ...

15 years ago | 0

Answered
The future of CSSM and Answers
I wouldn't call "slow" old and wise. I wouldn't think it is that hard to implement some of the high demanding wish lists, such a...

15 years ago | 1

Answered
Can you plot X,Y points onto a "SURF" graph?
hold on; plot(x,y,'.')

15 years ago | 0

| accepted

Answered
Reference index in equation
The message is clear. Your variable "n" is not defined. If you meant vectorization, it should be: CapBasic = a0 + a1*T_evap +...

15 years ago | 0

| accepted

Answered
Convert string of hex to array of dec
%% s1 = '0001h/r0002h/r0003h/r'; s1 = '4h/r0001h/r0002h/r0003h/r00'; str=regexp(s1,'h/r','split'); Ind=cellfun...

15 years ago | 1

| accepted

Answered
Control of Pathdef Output Hierarchy
You can run pathtool to move up/down the folder manually. If you want to make sure certain folders are always at the top of t...

15 years ago | 0

Answered
specific files reading from folder
AllDates=datevec(datenum('2009/1/1')+(0:750)); Year=2009; Month=2; SelectedDates=AllDates(and(AllDates(:,1)==Year,AllDat...

15 years ago | 0

Answered
To install matlab 2011 from data in harddisk
Contact Mathworks tech support.

15 years ago | 0

Answered
Converting VAX float to Matlab float
what do you mean, I saw fopen() has the option for 'vaxd'. All right, fopen No Longer Supports VAXD, VAXG, and Cray Machine...

15 years ago | 0

Answered
Labelling plot lines akin to contour labels
I don't know any way directly. All I can suggest is to look at contour.m to see if you can make you own. Share with us if you do...

15 years ago | 0

| accepted

Answered
How to get the exact position of a plotted point?
What do you mean? You want the x/y value of the data points? You can get that from menu Tools->Data Cursor and then click along ...

15 years ago | 2

| accepted

Answered
loop while in a GUI stopped by callback
The computer will be running the while loop and be too busy to process your click on the checkbox. Add a pause(1) line in the wh...

15 years ago | 0

Answered
Suppressing command output
try below. It just saves the screen outputs. system('dir >output.txt')

15 years ago | 0

| accepted

Load more